branch: master commit 9f39f5cd675a984d91c6b1c4b9ed692bede18c26 Author: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com> Commit: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>
More benchmark improvements. --- Makefile | 7 ++++--- benchmark/context-coloring-benchmark.el | 11 ++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 656a035..58aac73 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ all: clean install compile test +bench: benchjs benchel + benchjs: node_modules/.bin/matcha @@ -13,8 +15,7 @@ compile: emacs -Q -batch -f batch-byte-compile *.el clean: - rm -rf node_modules - rm *.elc + rm -f *.log benchmark/*.log *.elc install: npm install @@ -27,4 +28,4 @@ test: -l test/context-coloring-test.el \ -f ert-run-tests-batch-and-exit -.PHONY: all benchjs benchel compile clean install test +.PHONY: all bench benchjs benchel compile clean install test diff --git a/benchmark/context-coloring-benchmark.el b/benchmark/context-coloring-benchmark.el index 5476847..e7b5b8b 100644 --- a/benchmark/context-coloring-benchmark.el +++ b/benchmark/context-coloring-benchmark.el @@ -15,7 +15,9 @@ (defun context-coloring-benchmark-run () (context-coloring-benchmark-setup) - (let ((result-file (context-coloring-benchmark-resolve-path (concat "./results.log")))) + + (let ((result-file (context-coloring-benchmark-resolve-path + (concat "./results-" (format-time-string "%s") ".log")))) (dolist (path '("./fixtures/jquery-2.1.1.js" "./fixtures/lodash-2.4.1.js" @@ -40,8 +42,7 @@ (insert "\n") (append-to-buffer results-buffer (point-min) (point-max)))) - (append-to-file nil nil result-file))) - - (find-file result-file)) + (append-to-file nil nil result-file)))) - (context-coloring-benchmark-teardown)) + (context-coloring-benchmark-teardown) + (kill-emacs))