the-cost-of-nothing

2019-11-30

Determine the cost of things in Common Lisp.

Upstream URL

github.com/marcoheisig/the-cost-of-nothing

Author

Marco Heisig <marco.heisig@fau.de>

License

MIT
README

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.

0.1Benchmarking

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)

0.2Monitoring

Coming soon.

0.3Remember

There are lies, damned lies, and benchmarks.

Dependencies (4)

  • alexandria
  • closer-mop
  • local-time
  • trivial-garbage

Dependents (1)

  • GitHub
  • Quicklisp