Benchee v1.0.1 Benchee View Source
Top level module providing convenience access to needed functions as well
as the very high level Benchee.run
API.
Intended Elixir interface.
Link to this section Summary
Functions
Run benchmark jobs defined by a map and optionally provide configuration options
Link to this section Functions
Link to this function
benchmark(suite, name, function) View Source
Link to this function
collect(suite) View Source
Link to this function
init() View Source
Link to this function
init(config) View Source
Link to this function
load(suite) View Source
Link to this function
relative_statistics(suite) View Source
Link to this function
run(jobs, config \\ []) View Source
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
)
Link to this function
statistics(suite) View Source
Link to this function