Title here
Summary here
(macro measureOnce <value>)
Measure the time it takes to run some given code, in milliseconds, and print the result
Author: @SuperFola
code: Node of code to run(macro bench (code times) (...))
Benchmark some given code by running it a given number of times, and print a report
Author: @SuperFola
code: code to run, e.g. a function calltimes: number of times to run the code(let fib (fun (n)
(if (< n 2)
n
(+ (fib (- n 1)) (fib (- n 2))))))
(bench (fib 23) 10)
# (fib 23), 10 times
# ↪︎ range: [4.7 - 5.02] ms
# ↪︎ mean: 4.85ms
# ↪︎ median: 4.86ms