Skip to content

Commit

Permalink
Backport: Make it easy to produce a CSV report with benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbe committed Oct 3, 2011
1 parent 0c0c15f commit d262750
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions benchmarks/Makefile
Expand Up @@ -18,6 +18,7 @@ ghc-flags := -Wall -O2 -hide-all-packages \
-package deepseq -package hashable -package random -package bytestring \
$(ghc-prof-flags) -rtsopts
ghc-flags += $(extra-ghc-flags)
criterion-flags :=

%.o: %.hs
$(ghc) $(ghc-flags) -c -o $@ $<
Expand All @@ -31,6 +32,10 @@ bench: $(lib) Benchmarks.o Util/Int.o Util/ByteString.o Util/String.o
ranlib $(lib)
$(ghc) $(ghc-flags) -threaded -o $@ $(filter %.o,$^) $(lib)

.PHONY: bench-all
bench-all: bench
./bench -l | grep -v "Benchmarks:\|IntMap\|Map" | tr '\n' ' ' | xargs -d ' ' ./bench $(criterion-flags) +RTS -H -RTS

.PHONY: clean
clean:
-find . \( -name '*.o' -o -name '*.hi' \) -exec rm {} \;
Expand Down

0 comments on commit d262750

Please sign in to comment.