aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-08-04 22:15:47 -0400
committerFranklin Wei <me@fwei.tk>2018-08-04 22:15:47 -0400
commit57809bc2c318270e50bdd835d2a8c23d932d093b (patch)
tree07f32a133d69652d452ae2ddf39b1b23177a3ee7
parent633945d717933844b7819fae37f936f4e5c9d32f (diff)
downloadcsaa-57809bc2c318270e50bdd835d2a8c23d932d093b.zip
csaa-57809bc2c318270e50bdd835d2a8c23d932d093b.tar.gz
csaa-57809bc2c318270e50bdd835d2a8c23d932d093b.tar.bz2
csaa-57809bc2c318270e50bdd835d2a8c23d932d093b.tar.xz
Change graph style to lines only, without fill, and fix generation bug
This also fixes a issue with the graph generation. We were summing all the columns, 2-n, which would include the confidence error and logleaves value. This would cause a consistent bias in the produced graph. Should be fixed now.
-rwxr-xr-xgraph.gnu26
1 files changed, 9 insertions, 17 deletions
diff --git a/graph.gnu b/graph.gnu
index de97719..68029e4 100755
--- a/graph.gnu
+++ b/graph.gnu
@@ -4,7 +4,7 @@ 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 style line 3 pt -1 ps 0
set terminal eps size 6in,10in font "LiberationSerif"
@@ -33,13 +33,11 @@ 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;
+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 '.word(create_labels, (i+1) / 3) w yerrorlines ls (create_times - (i-2)/3);
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;
+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 '.word(dummy_create_labels, (i+1) / 3) w yerrorlines ls (dummy_create_times - (i-2)/3);
unset multiplot
@@ -52,13 +50,11 @@ 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;
+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 '.word(modify_labels, (i+1) / 3) w yerrorlines ls (modify_times - (i-2)/3);
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;
+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 '.word(dummy_modify_labels, (i+1) / 3) w yerrorlines ls (dummy_modify_times - (i-2)/3);
unset multiplot
@@ -71,13 +67,11 @@ 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;
+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 '.word(retrieve_labels, (i+1) / 3) w yerrorlines ls (retrieve_times - (i-2)/3);
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;
+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 '.word(dummy_retrieve_labels, (i+1) / 3) w yerrorlines ls (dummy_retrieve_times - (i-2)/3);
unset multiplot
@@ -88,13 +82,11 @@ set output "graph_modifyenc.eps"
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;
+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 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;
+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);