A tiny library for benchmarking IO actions. http://thoughtpolice.github.com/hs-microtimer
|Latest on Hackage:||0.0.1.2|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
A tiny Haskell library for timing IO actions.
This package contains a very simple module for benchmarking
actions. It was taken from criterion.
The API simply provides:
-- | Time an 'IO' action and return the time taken for execution, -- as well as the return value. time :: IO a -> IO (Double, a) -- | Time an 'IO' action, throwing away the result and returning -- the time taken for execution. time_ :: IO a -> IO Double -- | Convert a 'Double' value into a 'String' which specifies -- how long something took in seconds. formatSeconds :: Double -> String
It's just a
cabal install away on Hackage:
$ cabal install microtimer
Master git repository:
git clone https://github.com/thoughtpolice/hs-microtimer.git
There's also a BitBucket mirror:
git clone https://bitbucket.org/thoughtpolice/hs-microtimer.git
BSD3. See LICENSE.txt for terms of copyright and redistribution.
- Initial release