Robust, reliable performance measurement and analysis

Version on this page:
LTS Haskell 22.23:
Stackage Nightly 2024-05-27:
Latest on Hackage:

See all snapshots criterion appears in

BSD-3-Clause licensed and maintained by Bryan O'Sullivan
This version can be pinned in stack with:criterion-,3714

Module documentation for

  • Criterion
    • Criterion.Analysis
    • Criterion.IO
      • Criterion.IO.Printf
    • Criterion.Internal
    • Criterion.Main
      • Criterion.Main.Options
    • Criterion.Measurement
    • Criterion.Monad
    • Criterion.Report
    • Criterion.Types

Criterion: robust, reliable performance measurement

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, [email protected].


  • Bump lower bound on optparse-applicative to 0.11 to handle yet more annoying API churn.

  • Added a lower bound of 0.10 on the optparse-applicative dependency, as there were major API changes between 0.9 and 0.10.