[cl-bench-devel] [patch] refactor files/arrays.lisp to make runs specifiable in tests.lisp

Andreas Fuchs asf at boinkor.net
Thu Apr 16 09:58:37 UTC 2009

Hi there,

arrays.lisp is the odd benchmark group out when it comes to specifying
the number of runs: It has optional RUNS arguments in the defuns in
files/arrays.lisp. That makes it a bit of a pain to keep the run
numbers in sync with run times on modern machines. Also, it means
these benchmarks keep their setup code inside the benchmark function:
not a good thing.

The attached patch aims to fix this by defining a
cl-bench.arrays::bench-<something>-setup function that initializes the
arrays bound in a LET form surrounding the actual benchmark defun. At
least in my limited setup, it caused a slight reduction of test run
length variances, and it makes things a lot easier to maintain.

Andreas Fuchs, (http://|im:asf@|mailto:asf@)boinkor.net, antifuchs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pull-runs-from-array-benchmarks.patch
Type: application/octet-stream
Size: 10813 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cl-bench-devel/attachments/20090416/eeeb90f0/attachment.obj>

More information about the Cl-bench-devel mailing list