Working on adding benchmarks

main
Sam Hatfield 2020-06-15 02:13:33 -05:00
parent 969e04235a
commit af35b9edab
Signed by: sehqlr
GPG Key ID: 7338CA919BC087F3
5 changed files with 14 additions and 2 deletions

View File

@ -10,6 +10,11 @@ charset = utf-8
indent_style = space
indent_size = 2
[.{yaml,yml}]
charset = utf-8
indent_style = space
indent_size = 4
[Makefile]
indent_style = tab

2
Setup.hs Normal file
View File

@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain

View File

@ -1,4 +1,8 @@
import Criterion.Main
import Lib
main :: IO ()
main = defaultMain [bench "const" (whnf const ())]
main = defaultMain [
bench "lDistance" [ bench "a/a" $ whnf lDistance "a" "a"
]
]

1
cabal.project Normal file
View File

@ -0,0 +1 @@
benchmarks: True

View File

@ -34,7 +34,7 @@ executables:
- dhall
benchmarks:
spell-benchmarks:
spell-benchmark:
main: Main.hs
source-dirs: bench
dependencies: