criterion-1.0.2.0: Robust, reliable performance measurement and analysis

Copyright(c) 2009-2014 Bryan O'Sullivan
LicenseBSD-style
Maintainerbos@serpentine.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell98

Criterion.Internal

Description

Core benchmarking code.

Synopsis

Documentation

runAndAnalyse Source

Arguments

:: (String -> Bool)

A predicate that chooses whether to run a benchmark by its name.

-> Benchmark 
-> Criterion () 

Run, and analyse, one or more benchmarks.

runAndAnalyseOne :: Int -> String -> Benchmarkable -> Criterion Report Source

Run a single benchmark and analyse its performance.

runNotAnalyse Source

Arguments

:: Int64

Number of loop iterations to run.

-> (String -> Bool)

A predicate that chooses whether to run a benchmark by its name.

-> Benchmark 
-> Criterion () 

Run a benchmark without analysing its performance.

addPrefix Source

Arguments

:: String

Prefix.

-> String

Name.

-> String 

Add the given prefix to a name. If the prefix is empty, the name is returned unmodified. Otherwise, the prefix and name are separated by a '/' character.