client.sh: using service perf; not perf_t.
[pazpar2-moved-to-github.git] / perf / bash / par.sh
index d85b598..236907f 100755 (executable)
@@ -1,9 +1,19 @@
 #!/bin/bash
-DELAY=0.1
-NUMBER=10
-let i=0
-while test $i -lt $NUMBER; do
-       ./client.sh $i >$i.log 2>&1 &
-       sleep $DELAY
-       let i=$i+1
+DELAY=0.001
+WAIT=5
+NUMBER=40
+ROUNDS=5
+let r=0
+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 &
+               sleep $DELAY
+               let i=$i+1
+       done
+       sleep $WAIT
+       let r=$r+1
 done
+wait
+wget -O x 'http://localhost:9004/?command=exit'