criterion-1.0.0.2: Robust, reliable performance measurement and analysis

PortabilityGHC
Stabilityexperimental
Maintainerbos@serpentine.com
Safe HaskellNone

Criterion.Monad

Description

The environment in which most criterion code executes.

Synopsis

Documentation

data Criterion a Source

The monad in which most criterion code executes.

withConfig :: Config -> Criterion a -> IO aSource

Run a Criterion action with the given Config.

getGen :: Criterion GenIOSource

Return a random number generator, creating one if necessary.

This is not currently thread-safe, but in a harmless way (we might call createSystemRandom more than once if multiple threads race).

getOverhead :: Criterion DoubleSource

Return an estimate of the measurement overhead.