BenchmarkResult

Result of one function's benchmark.

Members

Variables

benchmarkName
string benchmarkName;

Name of the benchmark (sans the benchmark_ or benchmark_relative_ prefix, if any).

moduleName
string moduleName;

Module name in which the function resides (null if not applicable).

perIteration
TickDuration perIteration;

Time per iteration.

relative
double relative;

Relative timing (if benchmark is a relative one). Refer to the definition of benchmarkModule below for what constitutes a relative benchmark. For relative benchmarks, relative is 1.0 if the benchmark has the same speed as its baseline, 2.0 is the benchmark is twice as fast, and 0.5 if the benchmark has half the speed. For non-relative benchmarks, relative is set to NaN, which is testable with std.math.isNaN.

Meta