Module

Benchmark.Suite.ST

Package
purescript-benchmark
Repository
cyrbon/purescript-benchmark

#STSuite Source

data STSuite :: Type -> Type

#BenchmarkEvent Source

#new Source

new :: forall r h. Eff (st :: ST h | r) (STSuite h)

#add Source

add :: forall a anyEff e s. STSuite s -> String -> (Eff anyEff a) -> Eff (st :: ST s | e) Unit

#run Source

run :: forall e h. STSuite h -> Eff (st :: ST h | e) Unit

#on Source

on :: forall anyEff e h. STSuite h -> String -> (BenchmarkEvent -> Eff anyEff Unit) -> Eff (st :: ST h | e) Unit

#BenchmarkResult Source

type BenchmarkResult = { hz :: Number, name :: String, stats :: { rme :: Number } }

#accumulateResults Source

accumulateResults :: forall anyEff e s. STSuite s -> (Array BenchmarkResult -> Eff anyEff Unit) -> Eff (st :: ST s | e) Unit