1 |
lueking |
1.1 |
#!/bin/sh
|
2 |
|
|
#
|
3 |
|
|
# 15, Feb, 2006: Adapted by L. Lueking from
|
4 |
|
|
# S. Veseli's tests for SAM web services
|
5 |
|
|
#
|
6 |
|
|
# usage: ./run_all.sh nclientsStart nclientsMax
|
7 |
|
|
# ex: ./run_all.sh 1 10
|
8 |
|
|
#
|
9 |
|
|
n=$1
|
10 |
|
|
nMax=$2
|
11 |
|
|
suffix="a"
|
12 |
|
|
dspath="/eg03_jets_1e_pt2550/Digi/eg_2x1033PU761_TkMu_2_g133_OSC"
|
13 |
|
|
nTimes=1
|
14 |
|
|
resultFile=all_results.out
|
15 |
|
|
touch $resultFile
|
16 |
|
|
while [ "$n" != "${nMax}" ]; do
|
17 |
|
|
n=`expr $n + 1`
|
18 |
|
|
echo "Running WS tests with $n clients"
|
19 |
|
|
outputFile="ws_results.${n}.out"
|
20 |
|
|
./run_ws_client.sh $n $suffix $dspath $nTimes > $outputFile 2>&1
|
21 |
|
|
wsAve=`tail -1 $outputFile | awk '{print $NF}'`
|
22 |
|
|
|
23 |
|
|
echo "Running CGI tests with $n clients"
|
24 |
|
|
outputFile="cgi_results.${n}.out"
|
25 |
|
|
./run_cgi_client.sh $n $suffix $dspath $nTimes > $outputFile 2>&1
|
26 |
|
|
cgiAve=`tail -1 $outputFile | awk '{print $NF}'`
|
27 |
|
|
|
28 |
|
|
echo "$n $cgiAve $wsAve"
|
29 |
|
|
echo "$n $cgiAve $wsAve" >> $resultFile
|
30 |
|
|
echo
|
31 |
|
|
done
|