-
Notifications
You must be signed in to change notification settings - Fork 1
benchmark
cyclone-scheme edited this page Jul 6, 2021
·
2 revisions
Content automatically generated. Contributions from the community are very welcomed at the bottom of this file.
- Intro
- Dependencies
- Test dependencies
- Foreign dependencies
- API
- Examples
- Author(s)
- Maintainer(s)
- Version
- License
- Tags
A very simple benchmark library
None
None
None
Benchmark the procedure-call
repeating it n
times. n
defaults to 5
.
Returns seconds elapsed of a monotonic clock. Used by elapsed
to calculate procedure performance.
(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
Arthur Maciel
"0.1.0"
BSD
benchmark