[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/elisp-benchmarks 58be34f645c 43/54: * benchmarks/elb-smie.el (el
From: |
Pip Cet |
Subject: |
scratch/elisp-benchmarks 58be34f645c 43/54: * benchmarks/elb-smie.el (elb-font-lock-entry): New benchmark |
Date: |
Mon, 30 Dec 2024 22:40:44 -0500 (EST) |
branch: scratch/elisp-benchmarks
commit 58be34f645ccc6014a7dc4e6757c46e2d6fcd8a6
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* benchmarks/elb-smie.el (elb-font-lock-entry): New benchmark
---
elisp-benchmarks/benchmarks/elb-smie.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/elisp-benchmarks/benchmarks/elb-smie.el
b/elisp-benchmarks/benchmarks/elb-smie.el
index 259c9ea0d38..b423e7af087 100644
--- a/elisp-benchmarks/benchmarks/elb-smie.el
+++ b/elisp-benchmarks/benchmarks/elb-smie.el
@@ -1,6 +1,6 @@
;;; elb-smie.el --- C major mode based on SMIE -*- lexical-binding: t; -*-
-;; Copyright (C) 2015-2022 Free Software Foundation, Inc.
+;; Copyright (C) 2015-2023 Free Software Foundation, Inc.
;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
;; Version: 1.1
@@ -897,5 +897,14 @@ Past this column, we do not try to align the backslashes."
(dotimes (_ 5)
(indent-region (point-min) (point-max)))))
+(defun elb-font-lock-entry ()
+ (with-temp-buffer
+ (insert-file-contents (expand-file-name
+ "../resources/xmenu.c" elb-bench-directory))
+ (elb-smie-mode)
+ (dotimes (_ 50)
+ (font-lock-flush)
+ (font-lock-ensure))))
+
(provide 'elb-smie)
;;; elb-smie.el ends here
- scratch/elisp-benchmarks b4b10726cda 54/54: New script to import an elpa module, (continued)
- 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
- scratch/elisp-benchmarks 8ca8641e1ec 34/54: Add EIEIO benchmark, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 49031182944 37/54: * benchmarks/elb-bytecomp.el: New benchmark, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 58be34f645c 43/54: * benchmarks/elb-smie.el (elb-font-lock-entry): New benchmark,
Pip Cet <=
- scratch/elisp-benchmarks d75e4e0b7d9 47/54: * elisp-benchmarks.el: Bump new version., Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 5738562f549 48/54: * elisp-benchmarks.el (native-comp-speed, compilation-safety): Fix warning., Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 7159ce37b01 49/54: * elisp-benchmarks.el: Bump new version., Pip Cet, 2024/12/30