abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since ecb1628 was
7e3f5e2,
checked in by Mei <mei@…>, 12 years ago
|
1) converted daisychain scaling tests
|
-
Property mode set to
100755
|
File size:
1.0 KB
|
Rev | Line | |
---|
[7e3f5e2] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | SET=$1 |
---|
| 4 | filename=${SET}_orig |
---|
| 5 | if [ ! -e $filename ] ; then |
---|
| 6 | exit |
---|
| 7 | fi |
---|
| 8 | |
---|
| 9 | ## generate the plot script |
---|
| 10 | make_script() { |
---|
| 11 | cat <<FIN > $DATA.p |
---|
| 12 | set title "$TITLE" |
---|
| 13 | set terminal jpeg medium size 640,480 |
---|
| 14 | set output "$DATA.jpeg" |
---|
| 15 | set autoscale |
---|
| 16 | unset log |
---|
| 17 | unset label |
---|
| 18 | set xtic auto |
---|
| 19 | set ytic auto |
---|
| 20 | set xlabel "Number of Credentials" |
---|
| 21 | set ylabel "$TYPE time ($TIME)" |
---|
| 22 | set xr [0:*] |
---|
| 23 | set yr [0:*] |
---|
| 24 | plot '$DATA2.dat' using $X:$Y title '$TITLE2' with linespoints lt 8, \\ |
---|
| 25 | '$DATA1.dat' using $X:$Y:(\$$Y-\$$Z):(\$$Y+\$$Z) notitle with errorbars lt 10, \\ |
---|
| 26 | '$DATA1.dat' using $X:$Y title '$TITLE1' with linespoints lt 1 |
---|
| 27 | FIN |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | X=1 |
---|
| 31 | Y=2 |
---|
| 32 | Z=3 |
---|
| 33 | ### |
---|
| 34 | TYPE='Query Time' |
---|
| 35 | TITLE='Valid Query Time' |
---|
| 36 | DATA=${SET}_goodquery |
---|
| 37 | DATA1=${SET}_mgood |
---|
| 38 | DATA2=${SET}_good1 |
---|
| 39 | TITLE1='average' |
---|
| 40 | TITLE2='first' |
---|
| 41 | TIME='microsec' |
---|
| 42 | make_script |
---|
| 43 | gnuplot $DATA.p |
---|
| 44 | ### |
---|
| 45 | TYPE='Query Time' |
---|
| 46 | TITLE='Invalid Query Time' |
---|
| 47 | DATA=${SET}_badquery |
---|
| 48 | DATA1=${SET}_mbad |
---|
| 49 | DATA2=${SET}_bad1 |
---|
| 50 | TITLE1='average' |
---|
| 51 | TITLE2='first' |
---|
| 52 | TIME='microsec' |
---|
| 53 | make_script |
---|
| 54 | gnuplot $DATA.p |
---|
| 55 | |
---|
Note: See
TracBrowser
for help on using the repository browser.