Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / orbsvcs / tests / EC_Multiple / gen_dynamic
blobad39cc51c1f703b947ef42b13bdd66ada7eb18e9
1 #!/bin/sh
3 HP_SUPPLIERS="1"
4 LP_CONSUMERS="1 10 100 200 300 500 1000"
6 for s in $HP_SUPPLIERS; do
7 echo Supplier = $s
9 for c in $LP_CONSUMERS; do
10 x=`expr $c - 1`
11 l=`printf %02.2d $x`
12 echo Consumer = $c, LAST = $l
14 echo DYN.LCL.S${s}.C${c}.log
16 ./histo.pl -k 'Latency\[LCL,HP00' DYN.LCL.S${s}.C${c}.log >DYN.LCL.S${s}.C${c}.FIRST.histo
17 ./histo.pl -k "Latency\[LCL,HP${l}" DYN.LCL.S${s}.C${c}.log >DYN.LCL.S${s}.C${c}.LAST.histo
18 ./histo.pl -k "Latency\[LCL,HP" DYN.LCL.S${s}.C${c}.log >DYN.LCL.S${s}.C${c}.histo
19 done
20 done
22 for f in DYN.*.histo; do
23 b=`basename $f .histo`
24 tail +3 $f | sort -n > ${b}.data
25 done
27 for i in LCL; do
28 grep Min DYN.${i}.*.FIRST.histo |
29 sed -e "s/DYN.$i.S//" -e 's/\.C/ /' -e 's/.FIRST.histo:/ /' -e 's/\,/ /g' |
30 awk '{print $1, $2, $4, $6, $8, $10}' |
31 sort -k 1n -k 2n > DYN.${i}.FIRST.tbl
32 grep Min DYN.${i}.*.LAST.histo |
33 sed -e "s/DYN.$i.S//" -e 's/\.C/ /' -e 's/.LAST.histo:/ /' -e 's/\,/ /g' |
34 awk '{print $1, $2, $4, $6, $8, $10}' |
35 sort -k 1n -k 2n > DYN.${i}.LAST.tbl
36 paste DYN.${i}.FIRST.tbl DYN.${i}.LAST.tbl |
37 awk '{print $1, $2, $3, $4, $5, $6, $9, $10, $11, $12}' > DYN.${i}.tbl
38 done
40 for i in LCL; do
41 grep Min `ls DYN.${i}.*.histo | grep -v FIRST | grep -v LAST` |
42 sed -e "s/DYN.$i.S//" -e 's/\.C/ /' -e 's/.histo:/ /' -e 's/\,/ /g' |
43 awk '{print $1, $2, $4, $6, $8, $10}' |
44 sort -k 1n -k 2n > DYN.${i}.tbl
45 done
47 for s in $HP_SUPPLIERS; do
48 gnuplot <<_EOF_
49 set grid xtics ytics
50 set ylabel "Relative frequency"
51 set xlabel "Latency (usecs) [$s suppliers, local events]"
52 set terminal postscript eps color
53 set output "DYN.LCL.S${s}.eps"
54 plot 'DYN.LCL.S${s}.C1.data' w i
55 set terminal x11
56 plot 'DYN.LCL.S${s}.C1.data' w i
57 pause 2
58 _EOF_
59 done
61 for i in DYN.*.eps; do
62 b=`basename $i .eps`
63 gs -sDEVICE=jpeg -g640x480 -r110x110 -sNOPAUSE \
64 -sOutputFile="${b}.jpg" ${b}.eps quit.ps
65 done