File: Comparison.hs

package info (click to toggle)
haskell-criterion 1.6.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 360 kB
  • sloc: haskell: 1,891; javascript: 811; makefile: 3
file content (7 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
import Criterion.Main

main = defaultMain [
   bench "exp" $ whnf exp (2 :: Double)
 , bench "log" $ whnf log (2 :: Double)
 , bench "sqrt" $ whnf sqrt (2 :: Double)
 ]