abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since f30b1e9 was
7e3f5e2,
checked in by Mei <mei@…>, 12 years ago
|
1) converted daisychain scaling tests
|
-
Property mode set to
100755
|
File size:
1014 bytes
|
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 xr [0:*] |
---|
| 21 | set yr [0:*] |
---|
| 22 | set xlabel "Number of Credentials" |
---|
| 23 | set ylabel "$TYPE time ($TIME)" |
---|
| 24 | plot '$DATA.dat' using $X:$Y notitle with linespoints |
---|
| 25 | FIN |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | X=1 |
---|
| 29 | Y=2 |
---|
| 30 | ### making loading script |
---|
| 31 | TYPE='Loading' |
---|
| 32 | TITLE='Credential Loading Time' |
---|
| 33 | DATA=${SET}_load |
---|
| 34 | TIME='msec' |
---|
| 35 | make_script |
---|
| 36 | gnuplot ${SET}_load.p |
---|
| 37 | |
---|
| 38 | ### making average good query script |
---|
| 39 | TYPE='Successful Query' |
---|
| 40 | TITLE='Average Successful Query Time' |
---|
| 41 | DATA=${SET}_mgood |
---|
| 42 | TIME='microsec' |
---|
| 43 | make_script |
---|
| 44 | gnuplot ${SET}_mgood.p |
---|
| 45 | |
---|
| 46 | ### making average bad query script |
---|
| 47 | TYPE='Unsuccessful Query' |
---|
| 48 | TITLE='Average Unsuccessful Query Time' |
---|
| 49 | DATA=${SET}_mbad |
---|
| 50 | TIME='microsec' |
---|
| 51 | make_script |
---|
| 52 | gnuplot ${SET}_mbad.p |
---|
| 53 | |
---|
Note: See
TracBrowser
for help on using the repository browser.