Skip to content

Commit 39e9d66

Browse files
committed
Add a cabal file for benchmarks
When the installed hashable and the in-place hashable are out of step, it's really hard to get a benchmark build going using GHC 7.6 without using cabal. Hard enough that I gave up and did this instead.
1 parent 579f066 commit 39e9d66

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.hgignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
^dist$
1+
^(?:dist|benchmarks/dist)$
22
^tests/benchmarks/.*\.txt$
33
^tests/(?:\.hpc|bm|qc|qc-hpc|stdio-hpc|text/test)$
44
\.(?:aux|eventlog|h[ip]|log|[oa]|orig|prof|ps|rej|swp)$

benchmarks/hashable-benchmarks.cabal

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: hashable-benchmarks
2+
version: 0
3+
build-type: Simple
4+
5+
cabal-version: >=1.2
6+
7+
executable hashable-benchmarks
8+
ghc-options: -Wall -O2
9+
c-sources: ../cbits/hashByteString.c
10+
hs-source-dirs: .. .
11+
main-is: Benchmarks.hs
12+
other-modules:
13+
Data.Hashable
14+
Data.Hashable.SipHash
15+
build-depends:
16+
base,
17+
bytestring,
18+
criterion,
19+
ghc-prim,
20+
text

0 commit comments

Comments
 (0)