View Source Benchee.Benchmark.ScenarioContext (Benchee v1.3.0)

Internal struct the runner & related modules deal with to run a scenario.

Practically bundles information the runner needs to be aware of while running a scenario such as the current_time, end_time, printer, input, function call overhead etc.

Summary

Types

@type t() :: %Benchee.Benchmark.ScenarioContext{
  config: Benchee.Benchmark.BenchmarkConfig.t(),
  current_time: pos_integer() | nil,
  end_time: pos_integer() | nil,
  function_call_overhead: non_neg_integer(),
  num_iterations: pos_integer(),
  printer: module(),
  scenario_input: any(),
  system: term()
}