All Projects → marcoheisig → the-cost-of-nothing

marcoheisig / the-cost-of-nothing

Licence: MIT License
Determine the cost of things in Common Lisp.

Programming Languages

common lisp
692 projects

A LISP programmer knows the value of everything, but the cost of nothing.

— Alan Perlis

This library is a toolbox for measuring the run time of Common Lisp code. It provides macros and functions for accurate benchmarking and lightweight monitoring. Furthermore, it provides predefined benchmarks to determine the cost of certain actions on a given platform and implementation.

I hope you find it useful. If you have new ideas for benchmarks, or suggestions on how to improve existing ones, feel free to contact me.

Benchmarking

To run all predefined benchmarks, simply execute

(asdf:test-system :the-cost-of-nothing)

To obtain the execution time of an expression as a double-float in seconds, execute

(benchmark EXPRESSION)

To have said execution time immediately and human-readably written to trace-output (much like CL:TIME), execute

(bench EXPRESSION)

Monitoring

Coming soon.

Remember

There are lies, damned lies, and benchmarks.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].