aboutsummaryrefslogtreecommitdiff
path: root/graph.gnu
blob: de9771918b477317d136eeb6f9adc59b752a6cd0 (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
#!/usr/bin/gnuplot
set key below
set xlabel "logleaves"
set ylabel "average CPU time per operation for last 500 operations (μs)"
set yrange [0:2000]
set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt -1 ps 0
set style line 3 pt -1 ps 0

set terminal eps size 6in,10in font "LiberationSerif"

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, 1 title "Create Performance"

set title "Authenticated"

plot for[i=3 * create_times - 1:2:-3] '< paste results/final_data_0_*.txt' u 1:(sum [col=2:i] column(col)) title 'Create '.word(create_labels, (i+1) / 3) w filledcurves x1, \
     for[i=3 * create_times - 1:2:-3] '< paste results/final_data_0_*.txt' u 1:(sum [col=2:i] column(col)):i+1 title '+/- 1.96 SE' w yerrorbars ls 1;

set title "Dummy"

plot for[i=3 * dummy_create_times - 1:2:-3] '< paste results/final_dummy_data_0_*.txt' u 1:(sum [col=2:i] column(col)) title 'Create '.word(dummy_create_labels, (i+1) / 3) w filledcurves x1, \
     for[i=3 * dummy_create_times - 1:2:-3] '< paste results/final_dummy_data_0_*.txt' u 1:(sum [col=2:i] column(col)):i+1 title '+/- 1.96 SE' w yerrorbars ls 1;

unset multiplot



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

set multiplot layout 2, 1 title "Modify Performance"

set title "Authenticated"

plot for[i=3 * modify_times - 1:2:-3] '< paste results/final_data_1_*.txt' u 1:(sum [col=2:i] column(col)) title 'Modify '.word(modify_labels, (i+1) / 3) w filledcurves x1, \
     for[i=3 * modify_times - 1:2:-3] '< paste results/final_data_1_*.txt' u 1:(sum [col=2:i] column(col)):i+1 title '+/- 1.96 SE' w yerrorbars ls 1;

set title "Dummy"

plot for[i=3 * dummy_modify_times - 1:2:-3] '< paste results/final_dummy_data_1_*.txt' u 1:(sum [col=2:i] column(col)) title 'Modify '.word(dummy_modify_labels, (i+1) / 3) w filledcurves x1, \
     for[i=3 * dummy_modify_times - 1:2:-3] '< paste results/final_dummy_data_1_*.txt' u 1:(sum [col=2:i] column(col)):i+1 title '+/- 1.96 SE' w yerrorbars ls 1;

unset multiplot



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

set multiplot layout 2, 1 title "Retrieve Performance"

set title "Authenticated"

plot for[i=3 * retrieve_times - 1:2:-3] '< paste results/final_data_2_*.txt' u 1:(sum [col=2:i] column(col)) title 'Retrieve '.word(retrieve_labels, (i+1) / 3) w filledcurves x1, \
     for[i=3 * retrieve_times - 1:2:-3] '< paste results/final_data_2_*.txt' u 1:(sum [col=2:i] column(col)):i+1 title '+/- 1.96 SE' w yerrorbars ls 1;

set title "Dummy"

plot for[i=3 * dummy_retrieve_times - 1:2:-3] '< paste results/final_dummy_data_2_*.txt' u 1:(sum [col=2:i] column(col)) title 'Retrieve '.word(dummy_retrieve_labels, (i+1) / 3) w filledcurves x1, \
     for[i=3 * dummy_retrieve_times - 1:2:-3] '< paste results/final_dummy_data_2_*.txt' u 1:(sum [col=2:i] column(col)):i+1 title '+/- 1.96 SE' w yerrorbars ls 1;

unset multiplot



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

set title "Authenticated Encrypted Modify Performance"

plot for[i=3 * modify_times - 1:2:-3] '< paste results/final_data_3_*.txt' u 1:(sum [col=2:i] column(col)) title 'Encrypted modify '.word(modify_labels, (i+1) / 3) w filledcurves x1, \
     for[i=3 * modify_times - 1:2:-3] '< paste results/final_data_3_*.txt' u 1:(sum [col=2:i] column(col)):i+1 title '+/- 1.96 SE' w yerrorbars ls 1;

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

set title "Authenticated Encrypted Retrieve Performance"

plot for[i=3 * retrieve_times - 1:2:-3] '< paste results/final_data_4_*.txt' u 1:(sum [col=2:i] column(col)) title 'Encrypted retrieve '.word(retrieve_labels, (i+1) / 3) w filledcurves x1, \
     for[i=3 * retrieve_times - 1:2:-3] '< paste results/final_data_4_*.txt' u 1:(sum [col=2:i] column(col)):i+1 title '+/- 1.96 SE' w yerrorbars ls 1;