aggreact/src-benchmark/Main.hs

11 lines
161 B
Haskell
Raw Normal View History

2018-12-02 11:33:51 +00:00
import Protolude
import Criterion
import Criterion.Main
2019-06-17 08:44:13 +00:00
inc :: Int -> Int
inc = (+1)
2018-12-02 11:33:51 +00:00
main :: IO ()
main = defaultMain [bench "inc 41" (whnf inc (41 :: Int))]