https://github.com/athanclark/listvsgeneric
Simple benchmarks testing generic code vs. list-specific
https://github.com/athanclark/listvsgeneric
Last synced: 4 months ago
JSON representation
Simple benchmarks testing generic code vs. list-specific
- Host: GitHub
- URL: https://github.com/athanclark/listvsgeneric
- Owner: athanclark
- License: bsd-3-clause
- Created: 2015-09-04T08:59:08.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-05T03:10:24.000Z (almost 11 years ago)
- Last Synced: 2025-06-15T10:07:48.516Z (12 months ago)
- Language: HTML
- Size: 1.88 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
listvsgeneric
=============
Test list-specific functions against generic ones.
[check out the results](https://htmlpreview.github.io/?https://github.com/athanclark/listvsgeneric/blob/master/profile.html).
## Compiling & Running Benchmark
To run the test, make sure you have either stack > 1.3 or GHC >= 7.10 and cabal-install > 1.22.
Then, clone the repo:
```bash
git clone https://github.com/athanclark/listvsgeneric
```
build the library:
#### Cabal-Install
```bash
cabal install --enable-tests --enable-benchmarks
```
#### Stack
```bash
stack build
```
Then benchmark:
#### Cabal-Install
```bash
cabal bench
```
> __Help__: How do I supply arguments to the suite? :(
#### Stack
```bash
stack bench --benchmark-arguments="--output profile.html"
```
This renders a nice report to `./profile.html`.