hledger/tools/criterionbench.hs
2014-05-01 08:14:04 -07:00

11 lines
362 B
Haskell
Executable File

{- Criterion-based benchmarks. Criterion displays and minimises the impact
of time variance and charts the results. -}
import Criterion.Main
import System.Environment (withArgs)
import qualified HledgerMain
main = defaultMain [
bench "balance_100x100x10" $ nfIO $ withArgs ["balance", "-f", "100x100x10.ledger", ">/dev/null"] HledgerMain.main
]