testbench: Create tests and benchmarks together
Test your benchmarks! Benchmark your tests!
It's too easy to accidentally try and benchmark apples and oranges together. Wouldn't it be nice if you could somehow guarantee that your benchmarks satisfy some simple tests (e.g. a group of comparisons all return the same value)?
Furthermore, trying to compare multiple inputs/functions against each
other requires a lot of boilerplate, making it even easier to
accidentally compare the wrong things (e.g. using whnf
instead of
nf
).
testbench aims to help solve these problems and more by making it easier to write unit tests and benchmarks together by stating up-front what requirements are needed and then using simple functions to state the next parameter to be tested/benchmarked.
[Skip to Readme]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
examples | Build example executable | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- testbench-0.2.1.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.2.1.1, 0.2.1.2, 0.2.1.3 |
---|---|
Change log | Changelog.md |
Dependencies | base (>=4.8 && <5), bytestring, cassava (>=0.5 && <0.6), containers, criterion (>=1.5 && <1.6), criterion-measurement (>=0.1 && <0.2), deepseq (>=1.1.0.0 && <1.5), dlist (>=0.8 && <0.9), HUnit (>=1.1 && <1.7), optparse-applicative (>=0.11.0.0 && <0.15), process (>=1.1.0.0 && <1.7), statistics (>=0.14 && <0.16), streaming (>=0.2 && <0.3), streaming-cassava (>=0.1 && <0.2), streaming-with (>=0.1.0.0 && <0.3), temporary (>=1.1 && <1.4), testbench, transformers (>=0.5 && <0.6), weigh (>=0.0.4 && <0.1) [details] |
Tested with | ghc ==8.0.1, ghc ==8.2.2, ghc ==8.4.1, ghc ==8.6.5, ghc ==8.8.1 |
License | MIT |
Author | Ivan Lazar Miljenovic |
Maintainer | Ivan.Miljenovic@gmail.com |
Category | Testing |
Source repo | head: git clone https://github.com/ivan-m/testbench.git |
Uploaded | by IvanMiljenovic at 2019-05-07T15:15:04Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | examples |
Downloads | 4145 total (17 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2019-05-07 [all 1 reports] |