View Source :benchee (Benchee v1.2.0)
High-Level interface for more convenient usage from Erlang. Same as Benchee
.
Summary
Functions
Run benchmark jobs defined by a map and optionally provide configuration options.
Functions
@spec run( map(), keyword() ) :: Benchee.Suite.t()
Run benchmark jobs defined by a map and optionally provide configuration options.
Benchmarks are defined as a map where the keys are a name for the given
function and the values are the functions to benchmark. Users can configure
the run by passing a keyword list as the second argument. For more
information on configuration see Benchee.Configuration.init/1
.
Examples
Benchee.run(
%{
"My Benchmark" => fn -> 1 + 1 end,
"My other benchmrk" => fn -> [1] ++ [1] end
},
warmup: 2,
time: 3
)