This module provides the
bench function, which prints a short summary
of the running times of a synchronous function to the console.
For benchmarking tasks which require finer accuracy, or graphs as output,
Estimate the running time of a function and print a summary to the console, by running the function 1000 times.
> import Data.Array > import Data.Foldable > import Performance.Minibench > bench \_ -> sum (1 .. 10000) mean = 414.00 μs stddev = 494.82 μs
Estimate the running time of a function and print a summary to the console, specifying the number of samples to take. More samples will give a better estimate of both mean and standard deviation, but will increase running time.
To increase benchmark accuracy by forcing garbage collection before the benchmark is run, node should be invoked with the '--expose-gc' flag.