projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a017945
)
SERVICE and SHUTDOWN is now configurable
author
Dennis Schafroth
<dennis@indexdata.com>
Tue, 4 May 2010 14:20:12 +0000
(16:20 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Tue, 4 May 2010 14:20:12 +0000
(16:20 +0200)
perf/bash/par.sh
patch
|
blob
|
history
diff --git
a/perf/bash/par.sh
b/perf/bash/par.sh
index
0374b46
..
02d271f
100755
(executable)
--- a/
perf/bash/par.sh
+++ b/
perf/bash/par.sh
@@
-3,6
+3,9
@@
DELAY=0.001
WAIT=5
NUMBER=10
ROUNDS=5
+PORT=9004
+SERVICE=perf
+SHUTDOWN=1
if test -n "$1"; then
. $1
fi
@@
-11,7
+14,7
@@
while test $r -lt $ROUNDS; do
echo "$r"
let i=0
while test $i -lt $NUMBER; do
- ./client.sh $r.$i >$r.$i.log 2>&1 &
+ ./client.sh $r.$i $PORT $SERVICE >$r.$i.log 2>&1 &
sleep $DELAY
let i=$i+1
done
@@
-19,4
+22,6
@@
while test $r -lt $ROUNDS; do
let r=$r+1
done
wait
-wget -O x 'http://localhost:9004/?command=exit'
+if [ "$SHUTDOWN" == "1" ] ; then
+ wget -O x "http://localhost:${PORT}/?command=exit"
+fi