testbench: Create tests and benchmarks together

[ library, mit, testing ] [ Propose Tags ]

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.

Versions [faq] 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
Dependencies base (>=4.7 && <4.11), boxes (==0.1.*), bytestring, containers, criterion (==1.1.*), deepseq, HUnit, statistics, testbench, transformers [details]
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 2016-05-22T14:02:34Z
Distributions NixOS:0.2.1.3
Executables examples
Downloads 3239 total (102 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2016-05-22 [all 1 reports]

Modules

[Index]

Flags

NameDescriptionDefaultType
examples

Build example executable

DisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees