Bench

is a module for benchmarking. The most important function of the module is Bench.bench, which takes a function, benchmarks it, and prints the results.

bench

defn

(Fn [(Fn [] a b)] ())

                        (bench f)
                    

benchmarks the function f and prints the results to stdout.

set-min-runs!

defn

(Fn [Int] ())

                        (set-min-runs! n)
                    

sets the minimum number of runs to n.

If your functions takes a large amount of time, experimenting with this might make sense. The default value is 50, which means that your function runs at least 50 times before even hitting a timeout.