;just:bench: accept quickbench args

This commit is contained in:
Simon Michael 2024-01-12 07:01:04 -10:00
parent 76209d5765
commit 43dc321742

View File

@ -538,9 +538,9 @@ samplejournals:
BENCHEXES := 'hledger'
# run benchmark commands in bench.sh for each of BENCHEXES, with quickbench
@bench:
@bench *ARGS:
printf "Running benchmarks with {{ BENCHEXES }} (times are approximate, can be skewed):\n"
which quickbench >/dev/null && quickbench -w {{ BENCHEXES }} || echo "quickbench not installed (see bench.sh), skipping"
which quickbench >/dev/null && quickbench -w {{ BENCHEXES }} {{ ARGS }} || echo "quickbench not installed (see bench.sh), skipping"
# samplejournals bench.sh
# bench: samplejournals tests/bench.tests tools/simplebench \