Dealing with aspects of timing results.
- data TimeAspect
- takeTimeAspectOfBenchRunResult :: TimeAspect -> BenchRunResult -> Maybe Float
- takeAvgTimeOfBenchResult :: TimeAspect -> BenchResult -> Maybe Float
- takeMinTimeOfBenchResult :: TimeAspect -> BenchResult -> Maybe Float
- takeMaxTimeOfBenchResult :: TimeAspect -> BenchResult -> Maybe Float
- takeMinAvgMaxOfBenchResult :: TimeAspect -> BenchResult -> Maybe (Float, Float, Float)
Documentation
data TimeAspect Source
Aspects of a benchmark runtime we can talk about.
Enum TimeAspect | |
Read TimeAspect | |
Show TimeAspect | |
Pretty TimeAspect | Get the pretty name of a TimeAspect. |
takeTimeAspectOfBenchRunResult :: TimeAspect -> BenchRunResult -> Maybe FloatSource
Get a particular aspect of a benchmark result.
takeAvgTimeOfBenchResult :: TimeAspect -> BenchResult -> Maybe FloatSource
Get the average runtime from a benchmark result.
takeMinTimeOfBenchResult :: TimeAspect -> BenchResult -> Maybe FloatSource
Get the minimum runtime from a benchmark result.
takeMaxTimeOfBenchResult :: TimeAspect -> BenchResult -> Maybe FloatSource
Get the maximum runtime from a benchmark result.
takeMinAvgMaxOfBenchResult :: TimeAspect -> BenchResult -> Maybe (Float, Float, Float)Source
Get the min, avg, and max runtimes from this benchmark result.