mirror of
https://github.com/maciej-bendkowski/generic-boltzmann-brain.git
synced 2024-11-25 08:51:55 +03:00
13 lines
344 B
Haskell
13 lines
344 B
Haskell
import Criterion.Main (bench, bgroup, defaultMain, nfIO)
|
|
import Lambda (lambdaSampler)
|
|
|
|
main :: IO ()
|
|
main =
|
|
defaultMain
|
|
[ bgroup
|
|
"Boltzmann sampler for lambda terms of sizes [800..1200]"
|
|
[ bench "100 random terms" $ nfIO (lambdaSampler 100)
|
|
, bench "1000 random terms" $ nfIO (lambdaSampler 1000)
|
|
]
|
|
]
|