all: clean install compile test
+bench: benchjs benchel
+
benchjs:
node_modules/.bin/matcha
emacs -Q -batch -f batch-byte-compile *.el
clean:
- rm -rf node_modules
- rm *.elc
+ rm -f *.log benchmark/*.log *.elc
install:
npm install
-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
(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"
(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))