on master help sign in
Build profiling versions of benchmarks
commit5c6062f73601a97f386e5b9a4a6999d92412a344 authorBryan O'Sullivan <bos@serpentine.com> dateThu 3 Feb 2011, 19:26 (16 years ago) parent2eee1d0
2 files changed+6−9
.hgignore+1−1 benchmarks/Makefile+5−8
.hgignore+1−1
@@ -1,5 +1,5 @@
11^dist$
2−^benchmarks/(?:AesonParse|EncodeFile|JsonParse|json-data)$
2+^benchmarks/(?:AesonParse|EncodeFile|JsonParse|json-data|.*_p)$
33.*\.(?:h[ip]|o|orig|out|pdf|prof|ps|rej)$
44
55syntax: glob
benchmarks/Makefile+5−8
@@ -3,19 +3,16 @@ ghcflags := -O
33
44binaries := AesonParse EncodeFile JsonParse
55
6−all: json-data/example.json $(binaries)
6+all: json-data/example.json $(binaries) $(binaries:%=%_p)
77
8−AesonParse: AesonParse.hs
9− $(ghc) $(ghcflags) --make -o $@ $^
10−
11−EncodeFile: EncodeFile.hs
12− $(ghc) $(ghcflags) --make -o $@ $^
8+%_p: %.hs
9+ $(ghc) $(ghcflags) -prof -auto-all --make -o $@ $^
1310
14−JsonParse: JsonParse.hs
11+%: %.hs
1512 $(ghc) $(ghcflags) --make -o $@ $^
1613
1714json-data/example.json: json-data.tar.bz2
1815 bzip2 -dc < $^ | tar -m -xf -
1916
2017clean:
21− -rm -f *.o *.hi $(binaries)
18+ -rm -f *.o *.hi $(binaries) $(binaries:%=%_p)