unit_threaded.randomized.benchmark

Members

Functions

benchmark
void benchmark(string funcname = "", string filename = __FILE__)
void benchmark(from!"std.datetime".Duration maxRuntime, string filename = __FILE__)

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(const ref 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, from!"std.datetime".Duration maxRuntime, string filename = __FILE__)

Ditto Ditto

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