From: Adam Dickmeiss Date: Tue, 23 Mar 2010 14:33:47 +0000 (+0100) Subject: par.sh may source a configuration for it X-Git-Tag: v1.4.0~59^2 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=b423d60fdbbfa7fda1cf438dd594b5eb15dc4a5c;p=pazpar2-moved-to-github.git par.sh may source a configuration for it Eg. ./par.sh par.config.adam --- diff --git a/perf/bash/par.config.adam b/perf/bash/par.config.adam new file mode 100644 index 0000000..fc785fc --- /dev/null +++ b/perf/bash/par.config.adam @@ -0,0 +1,5 @@ +DELAY=0.0001 +WAIT=5 +NUMBER=20 +ROUNDS=1 + diff --git a/perf/bash/par.sh b/perf/bash/par.sh index 236907f..b01a265 100755 --- a/perf/bash/par.sh +++ b/perf/bash/par.sh @@ -3,6 +3,9 @@ DELAY=0.001 WAIT=5 NUMBER=40 ROUNDS=5 +if test -n "$1"; then + . $1 +fi let r=0 while test $r -lt $ROUNDS; do echo "$r"