[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/elisp-benchmarks f43385543fc 46/54: * Handle 'compilation-safety
From: |
Pip Cet |
Subject: |
scratch/elisp-benchmarks f43385543fc 46/54: * Handle 'compilation-safety' |
Date: |
Sat, 4 Jan 2025 12:26:37 -0500 (EST) |
branch: scratch/elisp-benchmarks
commit f43385543fc65e13e2f462f6a02ccd35685d8b32
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* Handle 'compilation-safety'
* elisp-benchmarks.el (bytecomp): Require it.
: Silence warning if 'compilation-safety' is not defined.
(elb-safety): Define.
(elisp-benchmarks-run): Make use of.
---
benchmarks/elisp-benchmarks.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/benchmarks/elisp-benchmarks.el b/benchmarks/elisp-benchmarks.el
index 855d5af4443..0e2d9dcbc5b 100644
--- a/benchmarks/elisp-benchmarks.el
+++ b/benchmarks/elisp-benchmarks.el
@@ -46,9 +46,12 @@
(require 'benchmark)
(require 'outline)
(require 'org)
+(require 'bytecomp)
(if (featurep 'native-compile)
(require 'comp)
(defvar native-comp-speed))
+(unless (boundp 'compilation-safety)
+ (defvar compilation-safety))
(defgroup elb nil
"Emacs Lisp benchmarks."
@@ -62,6 +65,10 @@
"Default `native-comp-speed' to be used for native compiling the benchmarks."
:type 'number)
+(defcustom elb-safety 0
+ "Default `compilation-safety' to be used for native compiling the
benchmarks."
+ :type 'number)
+
(defconst elb-bench-directory
(expand-file-name "benchmarks/"
(file-name-directory
@@ -93,6 +100,7 @@ RECOMPILE all the benchmark folder when non nil."
(when current-prefix-arg
(list (read-regexp "Run benchmark matching: "))))
(let* ((native-comp-speed elb-speed)
+ (compilation-safety elb-safety)
(compile-function (if (featurep 'native-compile)
#'native-compile
#'byte-compile-file))
- scratch/elisp-benchmarks 43fe57b7d90 16/54: * benchmarks/map-closure.el: Add new u-benchmark., (continued)
- scratch/elisp-benchmarks 43fe57b7d90 16/54: * benchmarks/map-closure.el: Add new u-benchmark., Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 370809463f2 17/54: ; * elisp-benchmarks.el: Tag new version and update copyright., Pip Cet, 2025/01/04
- scratch/elisp-benchmarks a9d26e8f320 18/54: * Update for new native-comp API + tag new version, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks e6717e1de7f 19/54: * benchmarks/pcase.el: Don't hide the real `pcase.el`, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks f5834702781 23/54: Make `comp-speed' explicit in each benchmark, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 00afe629432 20/54: Add new 'inclist-type-hints' benchmark + tag new version, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 8d15a1e6601 26/54: Make `comp-speed' controllable through a customize, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks a0d6af36237 28/54: * elisp-benchmarks.el: Bump new version., Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 0458ad6d03d 30/54: * elisp-benchmarks.el : Rename feature nativecomp -> feature-nativecompile, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks ba18acd0c17 32/54: ; * benchmarks/pack-unpack.el: Remove unnecessary newlines., Pip Cet, 2025/01/04
- scratch/elisp-benchmarks f43385543fc 46/54: * Handle 'compilation-safety',
Pip Cet <=
- scratch/elisp-benchmarks f0132de78c1 47/54: * elisp-benchmarks.el: Bump new version., Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 3dba0bfbf4d 37/54: * benchmarks/elb-bytecomp.el: New benchmark, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 0dc090098dd 34/54: Add EIEIO benchmark, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 2eb211695bc 43/54: * benchmarks/elb-smie.el (elb-font-lock-entry): New benchmark, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 6965195a757 49/54: * elisp-benchmarks.el: Bump new version., Pip Cet, 2025/01/04
- scratch/elisp-benchmarks d7f3b38a26b 50/54: elisp-benchmarks.el: Compact output and support setup code, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks a32a99ae8af 54/54: New script to import an elpa module, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 59b2387ba71 52/54: Add "elisp-benchmarks" package from ELPA, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 908c78fe2bb 42/54: ; Prefer HTTPS to HTTP in URLs, Pip Cet, 2025/01/04
- scratch/elisp-benchmarks 9f4ff70129a 10/54: * elisp-benchmarks.el: Typo fix, Pip Cet, 2025/01/04