Current section
Files
Jump to
Current section
Files
lib/benchee/benchmark/scenario_context.ex
defmodule Benchee.Benchmark.ScenarioContext do
@moduledoc """
This struct holds the context in which any scenario is run.
"""
defstruct [
:config,
:printer,
:current_time,
:end_time,
:scenario_input, # before_scenario can alter the original input
num_iterations: 1
]
@type t :: %__MODULE__{
config: Benchee.Configuration.t,
printer: module,
current_time: pos_integer | nil,
end_time: pos_integer | nil,
scenario_input: any,
num_iterations: pos_integer
}
end