This library provides a powerful but simple way to measure software performance. 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 online tutorial, followed by the documentation and examples in the Criterion.Main module. For examples of the kinds of reports that criterion generates, see the home page.

bsd3, development, library, performance, program, testing, Propose Tags , Criterion, Criterion.Analysis, Criterion.IO, Criterion.IO.Printf, Criterion.Internal, Criterion.Main, Criterion.Main.Options, Criterion.Monad, Criterion.Report, Criterion.Types, github issue tracker, github repository, Mercurial mirror,
cabal install criterion-


Criterion: robust, reliable performance measurement

Hackage Build Status

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

To get started, read the online tutorial, and take a look at the programs in the examples directory.

Building and installing

To build and install criterion, just run

cabal install criterion

Get involved!

Please report bugs via the github issue tracker.

Master github repository:

  • git clone

There's also a Mercurial mirror:

  • hg clone

(You can create and contribute changes using either Mercurial or git.)


This library is written and maintained by Bryan O'Sullivan,