Skip to content

BenchConfig

[Source]

Configuration of a benchmark.

class val BenchConfig

Constructors

create

[Source]

new val create(
  samples': USize val = seq,
  max_iterations': U64 val = seq,
  max_sample_time': U64 val = seq)
: BenchConfig val^

Parameters

  • samples': USize val = seq
  • max_iterations': U64 val = seq
  • max_sample_time': U64 val = seq

Returns


Public fields

let samples: USize val

[Source]

Total number of samples to be measured. (Default: 20)


let max_iterations: U64 val

[Source]

Maximum number of iterations to execute per sample. (Default: 1_000_000_000)


let max_sample_time: U64 val

[Source]

Maximum time to execute a sample in Nanoseconds. (Default: 100_000_000)