Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- data Benchmark result = Benchmark {
- benchmarkName :: String
- benchmarkSetup :: Build ()
- benchmarkCommand :: Build a
- benchmarkCheck :: a -> Build result
- data BenchResult result = BenchResult {
- benchResultName :: String
- benchResultIteration :: Int
- benchResultTime :: Seconds
- benchResultValue :: result
- runBenchmark :: Benchmark result -> Int -> Build (BenchResult result)
- iterateBenchmark :: Int -> Benchmark result -> Build [BenchResult result]
- timeBuild :: Build a -> Build (Seconds, a)
Documentation
data Benchmark result Source #
Benchmark definition.
Benchmark | |
|
data BenchResult result Source #
Benchmark result.
BenchResult | |
|
runBenchmark :: Benchmark result -> Int -> Build (BenchResult result) Source #
Run a benchmark a single time.
iterateBenchmark :: Int -> Benchmark result -> Build [BenchResult result] Source #
Run a benchmark the given number of times.