]> code.delx.au - gnu-emacs-elpa/commitdiff
Save benchmark logs to an untracked directory.
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Mon, 5 Jan 2015 06:15:43 +0000 (22:15 -0800)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Mon, 5 Jan 2015 06:15:43 +0000 (22:15 -0800)
.gitignore
Makefile
benchmark/context-coloring-benchmark.el

index 5282559b3397b662271d0faa4672264d13e4c6c3..d9c77ef68e9e435762ebb0c432e6808350f1d54f 100644 (file)
@@ -1,2 +1,2 @@
 *.elc
-*.log
+/benchmark/logs/
index c50712bcc449881e6c014f005b3738634c5ee739..2b6569c9ed73e740101b54a898c136a5ee72085a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ compile:
        -f batch-byte-compile *.el lib/*.el
 
 clean:
-       rm -f *.log benchmark/*.log *.elc lib/*.elc
+       rm -f *.elc lib/*.elc
 
 test:
        ${EMACS} -Q -batch \
index 707188f0b1da53b4ed674ec3bf5bfd39c388fafd..6d66f18c96f03519c6a4d405bda4b6ae3a02524e 100644 (file)
@@ -15,6 +15,7 @@
     (with-temp-buffer
       (insert "\n")
       (append-to-buffer results-buffer (point-min) (point-max))))
+  (make-directory (context-coloring-benchmark-resolve-path "./logs") t)
   (append-to-file nil nil result-file))
 
 (defun context-coloring-benchmark-next-tick (function)
@@ -34,7 +35,7 @@
 (defun context-coloring-benchmark-async (title setup teardown fixtures callback)
   (funcall setup)
   (let ((result-file (context-coloring-benchmark-resolve-path
-                      (concat "./results-" title "-" (format-time-string "%s") ".log"))))
+                      (concat "./logs/results-" title "-" (format-time-string "%s") ".log"))))
     (context-coloring-benchmark-next
      fixtures
      (lambda (path next)