W3cubDocs

/Pony

BenchConfig

[Source]

Configuration of a benchmark.

class val BenchConfig

Constructors

create

[Source]

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

Parameters

  • samples': USize val = 20
  • max_iterations': U64 val = 1000000000
  • max_sample_time': U64 val = 100000000

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)

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/ponybench-BenchConfig