mei_rt2mei_rt2_fix_1
Last change
on this file since c6d5da3 was
08b8da7,
checked in by Mei <mei@…>, 12 years ago
|
1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there
|
-
Property mode set to
100755
|
File size:
1014 bytes
|
Rev | Line | |
---|
[08b8da7] | 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.