Benchee v1.0.1 Benchee View Source

Top level module providing convenience access to needed functions as well as the very high level API.

Intended Elixir interface.

Link to this section Summary

Link to this section Functions

Link to this function

benchmark(suite, name, function) View Source

See Benchee.Benchmark.benchmark/3

See Benchee.Benchmark.collect/1

See Benchee.Configuration.init/1

See Benchee.Configuration.init/1

See Benchee.ScenarioLoader.load/1

Link to this function

relative_statistics(suite) View Source

See Benchee.RelativeStatistics.relative_statistics/1

Link to this function

run(jobs, config \\ []) View Source
run(map(), keyword()) :: any()

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.

    "My Benchmark" => fn -> 1 + 1 end,
    "My other benchmrk" => fn -> [1] ++ [1] end
  warmup: 2,
  time: 3

See Benchee.Statistics.statistics/1

See Benchee.System.system/1