[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/elisp-benchmarks 026b64c 1/2: Make `comp-speed' explici
From: |
Andrea Corallo |
Subject: |
[elpa] externals/elisp-benchmarks 026b64c 1/2: Make `comp-speed' explicit in each benchmark |
Date: |
Mon, 15 Mar 2021 16:40:59 -0400 (EDT) |
branch: externals/elisp-benchmarks
commit 026b64caf23dd63621cbd7e81d8856de1cc30598
Author: Andrea Corallo <andrea.corallo@arm.com>
Commit: Andrea Corallo <andrea.corallo@arm.com>
Make `comp-speed' explicit in each benchmark
* elisp-benchmarks.el (elisp-benchmarks-run): Do not hardcode
`comp-speed'.
* benchmarks/pidigits.el: Set `comp-speed' as buffer local
variable.
* benchmarks/pcase.el: Likewise.
* benchmarks/nbody.el: Likewise.
* benchmarks/map-closure.el: Likewise.
* benchmarks/listlen-tc.el: Likewise.
* benchmarks/inclist.el: Likewise.
* benchmarks/inclist-type-hints.el: Likewise.
* benchmarks/flet.el: Likewise.
* benchmarks/fibn.el: Likewise.
* benchmarks/fibn-tc.el: Likewise.
* benchmarks/fibn-rec.el: Likewise.
* benchmarks/dhrystone.el: Likewise.
* benchmarks/bubble.el: Likewise.
* benchmarks/bubble-no-cons.el: Likewise.
---
benchmarks/bubble-no-cons.el | 4 ++++
benchmarks/bubble.el | 4 ++++
benchmarks/dhrystone.el | 4 ++++
benchmarks/fibn-rec.el | 4 ++++
benchmarks/fibn-tc.el | 4 ++++
benchmarks/fibn.el | 4 ++++
benchmarks/flet.el | 4 ++++
benchmarks/inclist-type-hints.el | 4 ++++
benchmarks/inclist.el | 4 ++++
benchmarks/listlen-tc.el | 4 ++++
benchmarks/map-closure.el | 4 ++++
benchmarks/nbody.el | 4 ++++
benchmarks/pcase.el | 6 +++++-
benchmarks/pidigits.el | 4 ++++
elisp-benchmarks.el | 3 ---
15 files changed, 57 insertions(+), 4 deletions(-)
diff --git a/benchmarks/bubble-no-cons.el b/benchmarks/bubble-no-cons.el
index 85bd8f5..941b734 100644
--- a/benchmarks/bubble-no-cons.el
+++ b/benchmarks/bubble-no-cons.el
@@ -43,3 +43,7 @@
do (elb-bubble-no-cons l)))
(provide 'elb-bubble)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/bubble.el b/benchmarks/bubble.el
index d7101b1..5b7400a 100644
--- a/benchmarks/bubble.el
+++ b/benchmarks/bubble.el
@@ -46,3 +46,7 @@
do (elb-bubble l)))
(provide 'elb-bubble)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/dhrystone.el b/benchmarks/dhrystone.el
index a3bce4b..3cd09a8 100644
--- a/benchmarks/dhrystone.el
+++ b/benchmarks/dhrystone.el
@@ -303,3 +303,7 @@
(dhrystone 1000000))
(provide 'elb-dhrystone)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/fibn-rec.el b/benchmarks/fibn-rec.el
index a8e4b6c..c61cada 100644
--- a/benchmarks/fibn-rec.el
+++ b/benchmarks/fibn-rec.el
@@ -31,3 +31,7 @@
(elb-fib 37))
(provide 'fibn-rec)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/fibn-tc.el b/benchmarks/fibn-tc.el
index 83d571b..4e97e79 100644
--- a/benchmarks/fibn-tc.el
+++ b/benchmarks/fibn-tc.el
@@ -33,3 +33,7 @@
do (elb-fibn-tc 1 0 80)))
(provide 'fibn-tc)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/fibn.el b/benchmarks/fibn.el
index af53477..9a1449a 100644
--- a/benchmarks/fibn.el
+++ b/benchmarks/fibn.el
@@ -38,3 +38,7 @@
(elb-fibn 3000000 80))
(provide 'elb-fibn)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/flet.el b/benchmarks/flet.el
index 032980b..6bd5743 100644
--- a/benchmarks/flet.el
+++ b/benchmarks/flet.el
@@ -39,3 +39,7 @@
do (elb-flet elb-flet-list)))
(provide 'elb-flet)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/inclist-type-hints.el b/benchmarks/inclist-type-hints.el
index 660f4e4..3f6d8db 100644
--- a/benchmarks/inclist-type-hints.el
+++ b/benchmarks/inclist-type-hints.el
@@ -42,3 +42,7 @@
(let ((l (copy-sequence elb-inclist-th-no-type-hints-list)))
(cl-loop repeat 10000
do (elb-inclist-th l))))
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/inclist.el b/benchmarks/inclist.el
index 63837cb..1560d1e 100644
--- a/benchmarks/inclist.el
+++ b/benchmarks/inclist.el
@@ -40,3 +40,7 @@
do (elb-inclist l))))
(provide 'elb-inclist)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/listlen-tc.el b/benchmarks/listlen-tc.el
index 977605d..871f687 100644
--- a/benchmarks/listlen-tc.el
+++ b/benchmarks/listlen-tc.el
@@ -41,3 +41,7 @@
do (elb-listlen-tc elb-listlen-tc-list 0))))
(provide 'listlen-tc)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/map-closure.el b/benchmarks/map-closure.el
index 30fed05..84eb863 100644
--- a/benchmarks/map-closure.el
+++ b/benchmarks/map-closure.el
@@ -42,3 +42,7 @@
do (elb-map-closure elb-map-closure-list)))
(provide 'elb-map-closure)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/nbody.el b/benchmarks/nbody.el
index e53e50d..2beff22 100644
--- a/benchmarks/nbody.el
+++ b/benchmarks/nbody.el
@@ -140,3 +140,7 @@
(elb-nbody 300000))
(provide 'elb-nbody)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/pcase.el b/benchmarks/pcase.el
index 110027a..5bb0e36 100644
--- a/benchmarks/pcase.el
+++ b/benchmarks/pcase.el
@@ -29,7 +29,7 @@
;;
;; We should probably change GNUmakefile instead so it doesn't forcefully
;; add the directory to `load-path', e.g. make this dependent on the
- ;; presence of special file like `.dont-add-to-load-path'.
+ ;; presence of special file like `.dont-add-to-load-path'.
(when load-file-name
(setq load-path (remove (file-name-directory load-file-name) load-path))))
@@ -66,3 +66,7 @@
do (elb-pcase elb-pcase-list)))
(provide 'elb-pcase)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/benchmarks/pidigits.el b/benchmarks/pidigits.el
index de1eb42..135b086 100644
--- a/benchmarks/pidigits.el
+++ b/benchmarks/pidigits.el
@@ -69,3 +69,7 @@
do (elb-pidigits 500)))
(provide 'elb-pidigits)
+
+;; Local Variables:
+;; comp-speed: 3
+;; End:
diff --git a/elisp-benchmarks.el b/elisp-benchmarks.el
index 7e1d0c3..f7a2c76 100644
--- a/elisp-benchmarks.el
+++ b/elisp-benchmarks.el
@@ -97,9 +97,6 @@ RECOMPILE all the benchmark folder when non nil."
collect (file-name-base f))
(mapcar #'file-name-base sources))
initially
- (when native-comp
- (require 'comp)
- (setf comp-speed 3))
;; Compile
(when recompile
(mapc (lambda (f)