[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/elisp-benchmarks 28e2d369c9e 04/54: Reduce test setup + increase
From: |
Pip Cet |
Subject: |
scratch/elisp-benchmarks 28e2d369c9e 04/54: Reduce test setup + increase `elb-listlen-tc-len' lenght |
Date: |
Mon, 30 Dec 2024 22:40:40 -0500 (EST) |
branch: scratch/elisp-benchmarks
commit 28e2d369c9ec86ad4d896c10ea003db0edacd495
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
Reduce test setup + increase `elb-listlen-tc-len' lenght
Try to measure more the recursive call we are interested in than the
test setup.
---
elisp-benchmarks/benchmarks/listlen-tc.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/elisp-benchmarks/benchmarks/listlen-tc.el
b/elisp-benchmarks/benchmarks/listlen-tc.el
index 02327e5128e..977605d5fe8 100644
--- a/elisp-benchmarks/benchmarks/listlen-tc.el
+++ b/elisp-benchmarks/benchmarks/listlen-tc.el
@@ -1,6 +1,6 @@
;; -*- lexical-binding: t; -*-
-;; Copyright (C) 2019 Free Software Foundation, Inc.
+;; Copyright (C) 2019-2020 Free Software Foundation, Inc.
;; This file is part of GNU Emacs.
@@ -23,7 +23,7 @@
(require 'cl-lib)
-(defvar elb-listlen-tc-len 300)
+(defvar elb-listlen-tc-len 10000)
(defvar elb-listlen-tc-list
(mapcar #'random (make-list elb-listlen-tc-len 100)))
@@ -34,8 +34,10 @@
(elb-listlen-tc (cdr l) n)))
(defun elb-listlen-tc-entry ()
- (let ((l (copy-sequence elb-listlen-tc-list)))
- (cl-loop repeat 350000
- do (elb-listlen-tc l 0))))
+ (let* ((n (+ 1000 elb-listlen-tc-len))
+ (max-lisp-eval-depth n)
+ (max-specpdl-size n))
+ (cl-loop repeat 10000
+ do (elb-listlen-tc elb-listlen-tc-list 0))))
(provide 'listlen-tc)
- branch scratch/elisp-benchmarks created (now b4b10726cda), Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 28e2d369c9e 04/54: Reduce test setup + increase `elb-listlen-tc-len' lenght,
Pip Cet <=
- scratch/elisp-benchmarks e0762e1f175 11/54: * elisp-benchmarks.el (elisp-benchmarks-run): Recompile by default., Pip Cet, 2024/12/30
- scratch/elisp-benchmarks b64855f83f0 03/54: * elisp-benchmarks.el: Fix Author/maintainer info, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 7b0d2d4f16e 06/54: Increment version number, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 7d2b7516a29 08/54: * benchmarks/dhrystone.el: New benchmark, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 2981efb7b57 07/54: * benchmarks/nbody.el: New benchmark, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 350b95f6082 10/54: * elisp-benchmarks.el: Typo fix, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks d0963279fec 16/54: * benchmarks/map-closure.el: Add new u-benchmark., Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 69a99de283a 20/54: Add new 'inclist-type-hints' benchmark + tag new version, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks a29db7b9366 18/54: * Update for new native-comp API + tag new version, Pip Cet, 2024/12/30
- scratch/elisp-benchmarks 7b4f68f6866 17/54: ; * elisp-benchmarks.el: Tag new version and update copyright., Pip Cet, 2024/12/30