unit_threaded.randomized.benchmark

Undocumented in source.

Members

Functions

benchmark
void benchmark(string funcname, string filename)
void benchmark(from!"std.datetime".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)
void benchmark(string name, from!"std.datetime".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.

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