BenchmarkRunner.benchmark
BenchmarkResult benchmark(string name, void delegate() @safe func) @safeBenchmarks a function with automatic warm-up and measurement.
Parameters
name | Name of the benchmark |
func | Function to benchmark |
Returns
Benchmark result with statistical analysis
Throws
BenchmarkException if the function fails