perf-0.10.0: Low-level run time measurement.
Safe HaskellNone
LanguageHaskell2010

Perf.Stats

Description

Statistical choices for multiple performance measurements.

Synopsis

Documentation

average :: [Double] -> Double Source #

Compute the average

median :: [Double] -> Double Source #

Compute the median

tenth :: [Double] -> Double Source #

Compute the tenth percentile

averageI :: Integral a => [a] -> Double Source #

Compute the average of an Integral

averageSecs :: [Double] -> Double Source #

Compute the average time in seconds.

data StatDType Source #

Command-line options for type of statistic.

Instances

Instances details
Eq StatDType Source # 
Instance details

Defined in Perf.Stats

Show StatDType Source # 
Instance details

Defined in Perf.Stats

statD :: StatDType -> [Double] -> Double Source #

Compute a statistic.

statDs :: StatDType -> [[Double]] -> [Double] Source #

Compute a list of statistics.

parseStatD :: Parser StatDType Source #

Parse command-line StatDType options.

addStat :: (Ord k, Monad m) => k -> s -> StateT (Map k s) m () Source #

Add a statistic to a State Map

ordy :: Int -> [Text] Source #

Linguistic conversion of an ordinal

allStats :: Int -> Map [Text] [[Double]] -> Map [Text] [Double] Source #

Compute all stats.

statify :: Ord a => StatDType -> Map a [[Double]] -> Map [a] [Double] Source #

Convert a Map of performance result to a statistic.