-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation on building, testing, benchmarking (haskell-unorder…
- Loading branch information
Showing
2 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Contributing | ||
|
||
## Building, testing, benchmarking | ||
|
||
Building the library: | ||
|
||
``` | ||
cabal build | ||
``` | ||
|
||
Running the testsuite: | ||
|
||
``` | ||
cabal test | ||
``` | ||
|
||
Viewing the test options: | ||
|
||
``` | ||
cabal run tests -- --help | ||
``` | ||
|
||
Running a specific property test with an increased number of test cases | ||
(default: 100 cases): | ||
|
||
``` | ||
cabal run tests -- -p '/All.Properties.Data.HashSet.basic interface.member/' --quickcheck-tests 100_000 | ||
``` | ||
|
||
Running the benchmarks: | ||
|
||
``` | ||
cabal bench | ||
``` | ||
|
||
Viewing the benchmark options: | ||
|
||
``` | ||
cabal run benches -- --help | ||
``` | ||
|
||
Running a specific benchmark with a reduced target standard deviation (default: | ||
5%): | ||
|
||
``` | ||
cabal run benches -- -p /All.HashMap.lookup-miss.ByteString/ --stdev 1 | ||
``` | ||
|
||
To include comparison benchmarks for `containers` and `hashmap` uncomment the | ||
`cpp-options` in the benchmark section of `unordered-containers.cabal`: | ||
|
||
``` | ||
cpp-options: -DBENCH_containers_Map -DBENCH_containers_IntMap -DBENCH_hashmap_Map | ||
``` | ||
|
||
### References | ||
|
||
* [Documentation for `cabal`](https://cabal.readthedocs.io/en/latest/) | ||
* [Documentation for our testing framework, `tasty`](https://github.com/UnkindPartition/tasty#readme) | ||
* [Documentation for our benchmark framework, `tasty-bench`](https://github.com/Bodigrim/tasty-bench#readme) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters