aboutsummaryrefslogtreecommitdiff
path: root/graph.gnu
blob: 63c12743f225e101b7c153566de392256ec73ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#!/usr/bin/gnuplot
set key inside
set xlabel "log(leaves)"
set ylabel "mean CPU time per operation, last 500 ops (μs)"
set yrange [0:2000]
set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt -1 ps 0
set ytics 200
#set style line 3 pt -1 ps 0

set terminal eps size 2.5in,2.25in font "LinuxLibertine,8"

create_times = "`wc -l labels_0_create.txt`"
modify_times = "`wc -l labels_1_modify.txt`"
retrieve_times = "`wc -l labels_2_retrieve.txt`"

create_labels = "`cat labels_0_create.txt | tr "\n" " "`"
modify_labels = "`cat labels_1_modify.txt | tr "\n" " "`"
retrieve_labels = "`cat labels_2_retrieve.txt | tr "\n" " "`"

dummy_create_times = "`wc -l dummy_labels_0_create.txt`"
dummy_modify_times = "`wc -l dummy_labels_1_modify.txt`"
dummy_retrieve_times = "`wc -l dummy_labels_2_retrieve.txt`"

dummy_create_labels = "`cat dummy_labels_0_create.txt | tr "\n" " "`"
dummy_modify_labels = "`cat dummy_labels_1_modify.txt | tr "\n" " "`"
dummy_retrieve_labels = "`cat dummy_labels_2_retrieve.txt | tr "\n" " "`"



set output "graph_create.eps"
#set terminal qt 0

#set multiplot layout 2, 2 title "Server Performance"

#set title "Authenticated Create"

plot for[i=3 * create_times - 1:2:-3] '< paste results/final_data_0_*.txt' u 1:(sum [col=0:(i-2)/3] column(3 * col + 2)):i+1 title 'Create: '.system("cat labels_0_create.txt | sed '".sprintf("%d", (i+1) / 3)."q;d'") w yerrorlines ls (create_times - (i-2)/3);




set output "graph_dummycreate.eps"

#set title "Dummy Create"

plot for[i=3 * dummy_create_times - 1:2:-3] '< paste results/final_dummy_data_0_*.txt' u 1:(sum [col=0:(i-2)/3] column(3 * col + 2)):i+1 title 'Dummy Create: '.system("cat dummy_labels_0_create.txt | sed '".sprintf("%d", (i+1) / 3)."q;d'") w yerrorlines ls (dummy_create_times - (i-2)/3);




set output "graph_modify.eps"
#set terminal qt 1

#set multiplot layout 2, 1 title "Modify Performance"

#set title "Authenticated Modify (unencrypted)"

plot for[i=3 * modify_times - 1:2:-3] '< paste results/final_data_1_*.txt' u 1:(sum [col=0:(i-2)/3] column(3 * col + 2)):i+1 title 'Modify: '.system("cat labels_1_modify.txt | sed '".sprintf("%d", (i+1) / 3)."q;d'") w yerrorlines ls (modify_times - (i-2)/3);



set output "graph_dummymodify.eps"

#set title "Dummy Modify (unencrypted)"

plot for[i=3 * dummy_modify_times - 1:2:-3] '< paste results/final_dummy_data_1_*.txt' u 1:(sum [col=0:(i-2)/3] column(3 * col + 2)):i+1 title 'Dummy Modify: '.system("cat dummy_labels_1_modify.txt | sed '".sprintf("%d", (i+1) / 3)."q;d'") w yerrorlines ls (dummy_modify_times - (i-2)/3);



#unset multiplot



set output "graph_retrieve.eps"
#set terminal qt 2

#set multiplot layout 2, 2 title "Server Performance"

#set multiplot layout 2, 1 title "Retrieve Performance"

#set title "Authenticated Retrieve (unencrypted)"

plot for[i=3 * retrieve_times - 1:2:-3] '< paste results/final_data_2_*.txt' u 1:(sum [col=0:(i-2)/3] column(3 * col + 2)):i+1 title 'Retrieve: '.system("cat labels_2_retrieve.txt | sed '".sprintf("%d", (i+1) / 3)."q;d'") w yerrorlines ls (retrieve_times - (i-2)/3);


set output "graph_dummyretrieve.eps"




#set title "Dummy Retrieve (unencrypted)"

plot for[i=3 * dummy_retrieve_times - 1:2:-3] '< paste results/final_data_2_*.txt' u 1:(sum [col=0:(i-2)/3] column(3 * col + 2)):i+1 title 'Dummy Retrieve: '.system("cat dummy_labels_2_retrieve.txt | sed '".sprintf("%d", (i+1) / 3)."q;d'") w yerrorlines ls (dummy_retrieve_times - (i-2)/3);

#unset multiplot


###### We don't use these ######


#set output "graph_modifyenc.eps"
#set terminal qt 3

#set title "Authenticated Modify (encrypted)"

#plot for[i=3 * modify_times - 1:2:-3] '< paste results/final_data_3_*.txt' u 1:(sum [col=0:(i-2)/3] column(3 * col + 2)):i+1 title 'Modify '.word(modify_labels, (i+1) / 3) w yerrorlines ls (modify_times - (i-2)/3);




#set output "graph_retrieveenc.eps"
#set terminal qt 4

#set title "Authenticated Retrieve (encrypted)"

#plot for[i=3 * retrieve_times - 1:2:-3] '< paste results/final_data_4_*.txt' u 1:(sum [col=0:(i-2)/3] column(3 * col + 2)):i+1 title 'Retrieve '.word(retrieve_labels, (i+1) / 3) w yerrorlines ls (retrieve_times - (i-2)/3);