| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
BuildBox.Build.Benchmark
- data Benchmark result = forall a . 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
Benchmark definition.
Constructors
| forall a . Benchmark | |
Fields
| |
data BenchResult result Source
Benchmark result.
Constructors
| BenchResult | |
Fields
| |
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.