We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Content automatically generated. Contributions from the community are very welcomed at the bottom of this file.
A very simple benchmark library
None
(elapsed [n] procedure-call)
Benchmark the procedure-call repeating it n times. n defaults to 5.
procedure-call
n
5
(perf-counter)
Returns seconds elapsed of a monotonic clock. Used by elapsed to calculate procedure performance.
elapsed
(import (scheme base) (cyclone benchmark)) (define (fib n) (if (< n 2) n (+ (fib (- n 1)) (fib (- n 2))))) (elapsed (fib 20)) ;; => 0.000"0.1.0"323 (in seconds)
Arthur Maciel
"0.1.0"
BSD
benchmark