easier config of bench make target

This commit is contained in:
Simon Michael 2008-12-05 08:53:23 +00:00
parent b61c4f85e6
commit 1809dd7766

View File

@ -30,8 +30,10 @@ test:
@./regtest.py
# run performance benchmarks and save results in profs
BENCHEXES=hledger ledger
BENCHITERATIONS=2
bench:
tools/bench.hs bench.tests 2 hledger ledger "ledger --no-cache" | tee profs/`date +%Y%m%d%H%M%S`.bench
tools/bench.hs bench.tests $(BENCHITERATIONS) $(BENCHEXES) | tee profs/`date +%Y%m%d%H%M%S`.bench
VERSION=`grep 'versionno =' Options.hs | perl -pe 's/.*"(.*?)"/\1/'`
release: