Benchee v0.1.0 Benchee.Config

Functions to handle the configuration of Benchee, exposes init function.

Summary

Functions

Returns the initial benchmark configuration for Benhee, composed of defauls and an optional custom confiuration. Configuration times are given in seconds, but are converted to microseconds

Functions

init(config \\ %{})

Returns the initial benchmark configuration for Benhee, composed of defauls and an optional custom confiuration. Configuration times are given in seconds, but are converted to microseconds.

Possible options:

  • time - total run time of a single benchmark (determines how often it is executed)

Examples

iex> Benchee.Config.init
%{config: %{time: 5_000_000}, jobs: []}

iex> Benchee.Config.init %{time: 1}
%{config: %{time: 1_000_000}, jobs: []}