Portability | GHC |
---|---|
Stability | experimental |
Maintainer | bos@serpentine.com |
Safe Haskell | None |
The environment in which most criterion code executes.
Documentation
The monad in which most criterion code executes.
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.