[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/elisp-benchmarks 8d62f921433 51/54: elisp-benchmarks.el: Fix reg
From: |
Pip Cet |
Subject: |
scratch/elisp-benchmarks 8d62f921433 51/54: elisp-benchmarks.el: Fix regression in output format |
Date: |
Mon, 30 Dec 2024 22:40:45 -0500 (EST) |
branch: scratch/elisp-benchmarks
commit 8d62f921433c0f0762cf3f2311869cd7e43afbdf
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
elisp-benchmarks.el: Fix regression in output format
* elisp-benchmarks.el (elisp-benchmarks-run): Partly revert last change,
because it caused poor alignment.
---
elisp-benchmarks/elisp-benchmarks.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/elisp-benchmarks/elisp-benchmarks.el
b/elisp-benchmarks/elisp-benchmarks.el
index 85aad12c8ab..dc6142f85e8 100644
--- a/elisp-benchmarks/elisp-benchmarks.el
+++ b/elisp-benchmarks/elisp-benchmarks.el
@@ -189,7 +189,10 @@ RECOMPILE all the benchmark folder when non nil."
(pop-to-buffer elb-result-buffer-name)
(erase-buffer)
(insert "* Results\n\n")
- (insert " |test|non-gc (s)|gc (s)|gcs|total (s)\n")
+ ;; I tried to put the std-dev as a "(±N.NN)" in the
+ ;; same column as the total, to make it more compact,
+ ;; but Org doesn't know how to align that satisfactorily.
+ (insert " |test|non-gc (s)|gc (s)|gcs|total (s)|err (s)\n")
(insert "|-\n")
(cl-loop for test in tests
for l = (gethash test res)
@@ -198,23 +201,23 @@ RECOMPILE all the benchmark folder when non nil."
for test-gc-elapsed = (cl-loop for x in l sum (caddr x))
for test-err = (elb-std-deviation (mapcar #'car l))
do
- (insert (apply #'format "|%s|%.2f|%.2f|%d|%.2f (" test
+ (insert (apply #'format "|%s|%.2f|%.2f|%d|%.2f" test
(mapcar (lambda (x) (/ x runs))
(list (- test-elapsed
test-gc-elapsed)
test-gc-elapsed test-gcs
test-elapsed))))
- (insert (format "±%.2f)\n" test-err))
+ (insert (format "|%.2f\n" test-err))
summing test-elapsed into elapsed
summing test-gcs into gcs
summing test-gc-elapsed into gc-elapsed
collect test-err into errs
finally
(insert "|-\n")
- (insert (apply #'format "|total|%.2f|%.2f|%d|%.2f ("
+ (insert (apply #'format "|total|%.2f|%.2f|%d|%.2f"
(mapcar (lambda (x) (/ x runs))
(list (- elapsed gc-elapsed)
gc-elapsed gcs elapsed))))
- (insert (format "±%.2f)\n"
+ (insert (format "|%.2f\n"
(sqrt (apply #'+ (mapcar (lambda (x)
(expt x 2))
errs))))))
- scratch/elisp-benchmarks 72ffc80202f 23/54: Make `comp-speed' explicit in each benchmark, (continued)
- scratch/elisp-benchmarks 72ffc80202f 23/54: Make `comp-speed' explicit in each benchmark, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks fc30f892922 30/54: * elisp-benchmarks.el : Rename feature nativecomp -> feature-nativecompile, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks fc96f951783 31/54: * Rename comp-speed -> native-comp-speed + bump new version, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks f5a7f266b7a 26/54: Make `comp-speed' controllable through a customize, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 09b68bdaabf 41/54: * elisp-benchmarks.el: Bump version, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks ffe5fd6b642 40/54: * benchmarks/elb-scroll.el (elb-scroll-entry): Load native code when available, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 5c15316e5e4 39/54: * benchmarks/elb-scroll.el: New benchmark, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 472cb38e582 44/54: ; * elisp-benchmarks.el: Update my mail, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 05079cd8174 50/54: elisp-benchmarks.el: Compact output and support setup code, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 1675aa61b84 32/54: ; * benchmarks/pack-unpack.el: Remove unnecessary newlines., Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 8d62f921433 51/54: elisp-benchmarks.el: Fix regression in output format,
Pip Cet <=
- scratch/elisp-benchmarks 0b955aeabbc 45/54: ; * elisp-benchmarks.el: Update copyright year, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 5d3a6564227 53/54: Add "make elisp-benchmarks" target, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks b4b10726cda 54/54: New script to import an elpa module, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 81cd14929b9 12/54: * Use the Emacs native compiler if available, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 6326535d976 22/54: * Fix for new `native-compile' interface and bump new version, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks c171f1b8144 33/54: * elisp-benchmarks.el (elisp-benchmarks-run): Fix for non-native emacs, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 400690828d1 52/54: Add "elisp-benchmarks" package from ELPA, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 17c6be0ee5c 19/54: * benchmarks/pcase.el: Don't hide the real `pcase.el`, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 49619b889c0 28/54: * elisp-benchmarks.el: Bump new version., Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 85f201476ab 36/54: * benchmarks/elb-smie.el: New benchmark, Pip Cet, 2024/12/30