Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / orbsvcs / tests / EC_Multiple / gen_throughput
blob5cea1f25bcd485f7286260f9e2678e5bdc1394a5
1 #!/bin/sh
3 HP_CONSUMERS="1 5 10 20"
4 # The number of high priority consumers.
6 HP_SUPPLIERS="1 2 10"
7 # The number of high priority suppliers
9 for s in $HP_SUPPLIERS; do
10 for c in $HP_CONSUMERS; do
11 grep TOTAL THR.LCL.S${s}.C${c}.*.log |
12 sed -e "s/THR.LCL.S${s}.C${c}.I//" -e 's/\.log:Time\[TOTAL\]://' |
13 nawk -v f=$s '{print 1000000 / $1, $2 * f / 500 / $1}' |
14 sort -n > THR.LCL.S${s}.C${c}.data
15 done
16 done
18 cat >/tmp/genthr.$$ <<EOF
19 set grid xtics ytics
20 set ylabel "Effective/Expected Event Rate"
21 set xlabel "Event Rate (Hz)"
22 set output "THR.LCL.eps"
23 set terminal postscript eps color
24 plot 1
25 EOF
26 for s in $HP_SUPPLIERS; do
27 for c in $HP_CONSUMERS; do
28 cat >>/tmp/genthr.$$ <<EOF
29 replot 'THR.LCL.S${s}.C${c}.data' title "$s supp. $c cons." w l
30 EOF
31 done
32 done
34 gnuplot < /tmp/genthr.$$
36 for i in THR.*.eps; do
37 b=`basename $i .eps`
38 gs -sDEVICE=jpeg -g640x480 -r110x110 -sNOPAUSE \
39 -sOutputFile="${b}.jpg" ${b}.eps quit.ps
40 done