236907ff0f145c92de1c50c6c64f0ad62541fe79
[pazpar2-moved-to-github.git] / perf / bash / par.sh
1 #!/bin/bash
2 DELAY=0.001
3 WAIT=5
4 NUMBER=40
5 ROUNDS=5
6 let r=0
7 while test $r -lt $ROUNDS; do
8         echo "$r"
9         let i=0
10         while test $i -lt $NUMBER; do
11                 ./client.sh $r.$i >$r.$i.log 2>&1 &
12                 sleep $DELAY
13                 let i=$i+1
14         done
15         sleep $WAIT
16         let r=$r+1
17 done
18 wait
19 wget -O x 'http://localhost:9004/?command=exit'