criterion-1.0.1.0: Robust, reliable performance measurement and analysis

PortabilityGHC
Stabilityexperimental
Maintainerbos@serpentine.com
Safe HaskellNone

Criterion.Internal

Description

Core benchmarking code.

Synopsis

Documentation

runAndAnalyseSource

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 ReportSource

Run a single benchmark and analyse its performance.

runNotAnalyseSource

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.

addPrefixSource

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.