Benchee v0.3.0 Benchee.Benchmark

Functionality related to the actual benchmarking. Meaning running the given functions and recording their individual run times in a list. Exposes benchmark function.

Summary

Functions

Adds the given function and its associated name to the benchmarking jobs to be run in this benchmarking suite as a tuple {name, function} to the list under the :jobs key

Executes the benchmarks defined before by first running the defined functions for warmup time without gathering results and them running them for time gathering their run times

Functions

benchmark(map, name, function)

Adds the given function and its associated name to the benchmarking jobs to be run in this benchmarking suite as a tuple {name, function} to the list under the :jobs key.

measure(map)

Executes the benchmarks defined before by first running the defined functions for warmup time without gathering results and them running them for time gathering their run times.

This means the total run time of a single benchmarking job is warmup + time.

Warmup is usually important for run times with JIT but it seems to have some effect on the BEAM as well.

There will be parallel processes spawned exeuting the benchmark job in parallel.