The criterion package

[Tags: bsd3, library]

This library provides a powerful but simple way to measure the performance of Haskell code. It provides both a framework for executing and analysing benchmarks and a set of driver functions that makes it easy to build and run benchmarks, and to analyse their results.

The fastest way to get started is to read the documentation and examples in the Criterion.Main module.

[Skip to ReadMe]


Versions0.1, 0.1.2, 0.1.3, 0.1.4, 0.2.0, 0.3.0, 0.4.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Change logNone available
Dependenciesbase (<5), bytestring (>=0.9 && <1.0), Chart (==0.13.*), containers, data-accessor, deepseq (>=, filepath, mtl, mwc-random (>=, parallel, parsec (>=3.1.0), statistics (>= && <0.10), time, vector (>=, vector-algorithms (>=0.3.2) [details]
Copyright2009-2010 Bryan O'Sullivan
AuthorBryan O'Sullivan <>
MaintainerBryan O'Sullivan <>
CategoryDevelopment, Performance, Testing
UploadedWed Jul 14 11:56:25 UTC 2010 by BryanOSullivan
UpdatedSat Dec 20 11:07:45 UTC 2014 by HerbertValerioRiedel to revision 1
DistributionsDebian:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:
Downloads22272 total (471 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




chartenable use of the Chart packageDisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees

Readme for criterion-

Criterion: robust, reliable performance measurement

This package provides the Criterion module, a Haskell library for
measuring and analysing the performance of Haskell programs.

To get started, read the documentation for the Criterion.Main module,
and take a look at the programs in the examples directory.

Building and installing

To build and install criterion, just run

  cabal install criterion

On Mac OS X, the Chart library that criterion uses is not available,
so you'll have to build without it.

  cabal install criterion -f-chart
This will lose you the ability to generate charts, but you'll still be
able to generate CSV files and import them into your favourite
spreadsheet, or gnuplot, or whatnot.

Get involved!

Please feel welcome to contribute new code or bug fixes.  You can
fetch the source repository from here:

darcs get


Bryan O'Sullivan <>