Std.Bench
12 public declarations
- compare
&Std.Bench.Report -> &Std.Bench.Report -> StrTwo measurements written as a line saying which won and by how much.
- fasterThan
&Std.Bench.Report -> &Std.Bench.Report -> Int -> BoolWhether a candidate is faster than a baseline by more than a stated margin.
- measure
Str -> Int -> Int -> fn() -> () -> Std.Bench.SampleRun an action and answer how long each batch of it took.
- ratio
&Std.Bench.Report -> &Std.Bench.Report -> IntHow one measurement compares with another, in hundredths.
- render
&Std.Bench.Report -> StrOne report written as a line.
- renderAll
&Array[Std.Bench.Report] -> StrEvery report written, one to a line.
- Report
What a sample says once it has been read.
- run
Str -> Int -> Int -> fn() -> () -> Std.Bench.ReportMeasure and read in one step.
- Sample
The timings one measurement collected.
- slowerThan
&Std.Bench.Report -> &Std.Bench.Report -> Int -> BoolWhether a candidate is slower than a baseline by more than a stated margin.
- summarize
&Std.Bench.Sample -> Std.Bench.ReportWhat a sample says.
- tooFast
&Std.Bench.Report -> BoolWhether the batch was too small for the clock to see.
