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