A LISP programmer knows the value of everything, but the cost of nothing.
--- Alan Perlis
These are some portable benchmarks and tests to estimate the cost of individual Common Lisp operations on the given platform and implementation. I hope you find it useful.
To run all benchmarks, simply execute
To obtain the execution time of an expression in seconds, type
To measure only certain parts of an expression, type
(nested-benchmark (foo) (bar) (benchmark SUBEXPRESSION1) (let ((a (baz))) (benchmark SUBEXPRESSION2)))
Please do not forget
There are lies, damned lies, and benchmarks.
- Marco Heisig <firstname.lastname@example.org>