unit_threaded.randomized.benchmark

Undocumented in source.

Members

Functions

benchmark
void benchmark(string funcname, string filename)
void benchmark(Duration maxRuntime, string filename)

This function runs the passed callable T for the duration of maxRuntime. It will count how often T is run in the duration and how long each run took to complete.

benchmark
void benchmark(BenchmarkOptions opts)

This function runs the passed callable T for the duration of maxRuntime. It will count how often T is run in the duration and how long each run took to complete.

benchmark
void benchmark(string name, Duration maxRuntime, string filename)

Ditto Ditto

doNotOptimizeAway
void doNotOptimizeAway(T t)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Benchmark
struct Benchmark

This struct takes care of the time taking and outputting of the statistics.

BenchmarkOptions
struct BenchmarkOptions

The options controlling the behaviour of benchmark.

Meta