lish/src-benchmark/Main.hs
Yann Esposito (Yogsototh) d3e03799d2
another benchmark
2019-09-07 15:41:06 +02:00

16 lines
423 B
Haskell

{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
import Protolude
import Criterion
import Criterion.Main
import Lish.Parser (parseCmd)
main :: IO ()
main = defaultMain
[bench "parseCmd (foo \"bar\")"
(whnf parseCmd "(foo \"bar\")")
, bench "parseCmd (f (f ..28x...))"
(whnf parseCmd "(f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f ))))))))))))))))))))))))")
]