|
| Criterion | | Portability | GHC | | Stability | experimental | | Maintainer | bos@serpentine.com |
|
|
|
| Description |
| Core benchmarking code.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| class Benchmarkable a where | Source |
|
| A benchmarkable function or action.
| | | Methods | | | :: a | The function or action to benchmark.
| | -> Int | The number of times to run or evaluate it.
| | -> IO () | | | Run a function or action the specified number of times.
|
|
| | Instances | |
|
|
|
| A benchmark may consist of either a single Benchmarkable item
with a name, created with bench, or a (possibly nested) group of
Benchmarks, created with bgroup.
| Instances | |
|
|
|
| A container for a pure function to benchmark, and an argument to
supply to it each time it is evaluated.
| Instances | |
|
|
|
| Apply an argument to a function, and evaluate the result to head
normal form (NF).
|
|
|
| Perform an action, then evaluate its result to head normal form.
This is particularly useful for forcing a lazy IO action to be
completely performed.
|
|
|
| Apply an argument to a function, and evaluate the result to weak
head normal form (WHNF).
|
|
|
|
|
|
| :: String | A name to identify the group of benchmarks.
| | -> [Benchmark] | Benchmarks to group under this name.
| | -> Benchmark | | | Group several benchmarks together under a common name.
|
|
|
|
| Run a single benchmark, and return timings measured when
executing it.
|
|
|
|
|
| Produced by Haddock version 2.6.0 |