Benchee v0.13.0 benchee View Source
High-Level interface for more convenient usage from Erlang. Same as Benchee
.
Link to this section Summary
Functions
Run benchmark jobs defined by a map and optionally provide configuration options
Link to this section Functions
Run benchmark jobs defined by a map and optionally provide configuration options.
Runs the given benchmarks and prints the results on the console.
- jobs - a map from descriptive benchmark job name to a function to be executed and benchmarked
- configuration - configuration options to alter what Benchee does, see
Benchee.Configuration.init/1
for documentation of the available options.
Examples
Benchee.run(%{"My Benchmark" => fn -> 1 + 1 end,
"My other benchmrk" => fn -> "1" ++ "1" end}, time: 3)
# Prints a summary of the benchmark to the console