Copyright | (c) 2014 Bryan O'Sullivan |
---|---|
License | BSD-style |
Maintainer | bos@serpentine.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Benchmarking command-line configuration.
Synopsis
- data Mode
- data MatchType
- defaultConfig :: Config
- parseWith :: Config -> Parser Mode
- config :: Config -> Parser Config
- describe :: Config -> ParserInfo Mode
- describeWith :: Parser a -> ParserInfo a
- versionInfo :: String
Documentation
Execution mode for a benchmark program.
List | List all benchmarks. |
Version | Print the version. |
RunIters Config Int64 MatchType [String] | Run the given benchmarks, without collecting or analysing performance numbers. |
Run Config MatchType [String] | Run and analyse the given benchmarks. |
Instances
How to match a benchmark name.
Prefix | Match by prefix. For example, a prefix of
|
Glob | Match by Unix-style glob pattern. When using this match
type, benchmark names are treated as if they were
file-paths. For example, the glob patterns |
Pattern | Match by searching given substring in benchmark paths. |
IPattern | Same as |
Instances
defaultConfig :: Config Source #
Default benchmarking configuration.
Parse a command line.
describeWith :: Parser a -> ParserInfo a Source #
Flesh out command-line information using a custom Parser
.
versionInfo :: String Source #
A string describing the version of this benchmark (really, the version of criterion that was used to build it).