par.sh may source a configuration for it
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 23 Mar 2010 14:33:47 +0000 (15:33 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 23 Mar 2010 14:33:47 +0000 (15:33 +0100)
Eg. ./par.sh par.config.adam

perf/bash/par.config.adam [new file with mode: 0644]
perf/bash/par.sh

diff --git a/perf/bash/par.config.adam b/perf/bash/par.config.adam
new file mode 100644 (file)
index 0000000..fc785fc
--- /dev/null
@@ -0,0 +1,5 @@
+DELAY=0.0001
+WAIT=5
+NUMBER=20
+ROUNDS=1
+
index 236907f..b01a265 100755 (executable)
@@ -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"