View Source BencheeDsl.Benchmark behaviour (BencheeDsl v0.5.3)
Helpers for defining a benchmark with the DSL.
This module must be used to define and configure a benchmark.
Link to this section Summary
Functions
Defines a after_each
hook.
Defines a after_each
hook.
Defines a after_scenario
hook.
Defines a after_scenario
hook.
Defines a before_each
hook.
Defines a before_each
hook.
Defines a before_scenario
hook.
Defines a before_scenario
hook.
Configures the benchmark.
Adds a formatter to the benchmark.
Defines a function or map
to setup the inputs for the benchmark. If inputs
has a do
block a map
is expected to be returned.
This macro defines a function for the benchmark.
Takes a module and generates jobs for each public function.
Creates a new Benchmark
struct.
Defines a callback that runs once the benchmark exits.
Defines a setup
callback to be run before the benchmark starts.
Updates a benchmark
struct by the given key
or path
.
Link to this section Types
@type key() :: :config | :description | :dir | :module
Link to this section Callbacks
@callback run() :: :ok
Runs the benchmark.
@callback run(config :: keyword()) :: :ok
Runs the benchmark with the given config
.
Link to this section Functions
Defines a after_each
hook.
Defines a after_each
hook.
Defines a after_scenario
hook.
Defines a after_scenario
hook.
Defines a before_each
hook.
Defines a before_each
hook.
Defines a before_scenario
hook.
Defines a before_scenario
hook.
Configures the benchmark.
Adds a formatter to the benchmark.
Defines a function or map
to setup the inputs for the benchmark. If inputs
has a do
block a map
is expected to be returned.
This macro defines a function for the benchmark.
Takes a module and generates jobs for each public function.
Creates a new Benchmark
struct.
Defines a callback that runs once the benchmark exits.
Defines a setup
callback to be run before the benchmark starts.
Updates a benchmark
struct by the given key
or path
.