source: examples/scaling_tests/plotting/gen_small @ 7e3f5e2

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 7e3f5e2 was 7e3f5e2, checked in by Mei <mei@…>, 12 years ago

1) converted daisychain scaling tests

  • Property mode set to 100755
File size: 1014 bytes
RevLine 
[7e3f5e2]1#!/bin/sh
2
3SET=$1
4filename=${SET}_orig
5if [ ! -e $filename ] ; then
6    exit
7fi
8
9## generate the plot script
10make_script() {
11cat <<FIN > $DATA.p
12set title "$TITLE"
13set terminal jpeg medium size 640,480
14set output "$DATA.jpeg"
15set   autoscale   
16unset log
17unset label                           
18set xtic auto                         
19set ytic auto                         
20set xr [0:*]
21set yr [0:*]
22set xlabel "Number of Credentials"
23set ylabel "$TYPE time ($TIME)"
24plot '$DATA.dat' using $X:$Y notitle with linespoints
25FIN
26}
27
28X=1
29Y=2
30### making loading script
31TYPE='Loading'
32TITLE='Credential Loading Time'
33DATA=${SET}_load
34TIME='msec'
35make_script
36gnuplot ${SET}_load.p
37
38### making average good query script
39TYPE='Successful Query'
40TITLE='Average Successful Query Time'
41DATA=${SET}_mgood
42TIME='microsec'
43make_script
44gnuplot ${SET}_mgood.p
45
46### making average bad query script
47TYPE='Unsuccessful Query'
48TITLE='Average Unsuccessful Query Time'
49DATA=${SET}_mbad
50TIME='microsec'
51make_script
52gnuplot ${SET}_mbad.p
53
Note: See TracBrowser for help on using the repository browser.