Benchee v0.12.0 Benchee.Benchmark.Runner View Source
This module actually runs our benchmark scenarios, adding information about run time and memory usage to each scenario.
Link to this section Summary
Functions
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
Link to this section Functions
Link to this function
run_scenarios(scenarios, scenario_context)
View Source
run_scenarios([Benchee.Benchmark.Scenario.t()], Benchee.Benchmark.ScenarioContext.t()) :: [Benchee.Benchmark.Scenario.t()]
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 scenario 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 executing the benchmark job in
parallel.