-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsqlite.plot
executable file
·80 lines (63 loc) · 2.74 KB
/
sqlite.plot
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
#!/usr/bin/gnuplot
reset
set terminal svg enhanced size 650,250 font 'Arial,20'
set output '/out/sqlite.svg'
set grid
# Make the x axis labels easier to read.
set xtics font ",16" nomirror rotate by 20 scale 0 right
set ytics nomirror
# remove useless margins
set bmargin 1.5
set lmargin 7
set rmargin 1
#set tmargin 0.5
# offsets reduces the space at the extreme left & right borders
# to minimize white space
set offsets -0.5, -0.5, 0, 0
# Select histogram data
set style histogram rowstacked
set style data histogram
# Bar style
set style fill pattern border -1
set boxwidth 0.5
# make sure that the legend doesn't take too much space
unset key
set key samplen 1.5 outside above center horizontal font ",18"
# important to display labels
set datafile missing '-'
# uncomment this to get the title
#set title "Time to perform 5000 INSERTs in SQLite."
# ensure that y label doesn't take too much space
set ylabel "SQLite execution time (s)" offset 2,0
set lmargin 7
set yrange [0:2.5]
set xrange [0:14]
set label "Unikraft" at 0.750,2.25 font ",18"
set label "FlexOS" at 4.220,2.25 font ",18"
set label "Linux" at 7.450,2.25 font ",18"
set label "SeL4/" at 9.400,2.25 font ",18"
set label "Genode" at 9.200,2.00 font ",18"
set label "CubicleOS" at 11.45,2.25 font ",18"
set label ".052" at 0.600,0.242 font ",16"
set label ".702" at 1.550,0.892 font ",16"
set label ".054" at 3.550,0.244 font ",16"
set label ".106" at 4.550,0.296 font ",16"
set label ".173" at 5.550,0.363 font ",16"
set label ".177" at 7.550,0.367 font ",16"
set label ".333" at 9.550,0.523 font ",16"
set label ".657" at 11.55,0.847 font ",16"
set label "1.557" at 12.5,1.747 font ",16"
set arrow from 3, graph 0 to 3, graph 1 nohead
set arrow from 7, graph 0 to 7, graph 1 nohead
set arrow from 9, graph 0 to 9, graph 1 nohead
set arrow from 11, graph 0 to 11, graph 1 nohead
plot "/out/results/sqlite.dat" \
every 9::0 using 1:3:xtic(2) with boxes fs pattern 1 lc "#91c6e7" title "QEMU/KVM", \
"" every 9::1 using 1:3:xtic(2) with boxes fs pattern 6 lc "#a2d9d1" notitle, \
"" every 9::2 using 1:3:xtic(2) with boxes fs pattern 1 lc "#91c6e7" notitle, \
"" every 9::3 using 1:3:xtic(2) with boxes fs pattern 1 lc "#91c6e7" notitle, \
"" every 9::4 using 1:3:xtic(2) with boxes fs pattern 6 lc "#a2d9d1" title "linuxu", \
"" every 9::5 using 1:3:xtic(2) with boxes fs pattern 2 lc "#d18282" title "Process", \
"" every 9::6 using 1:3:xtic(2) with boxes fs pattern 1 lc "#91c6e7" notitle, \
"" every 9::7 using 1:3:xtic(2) with boxes fs pattern 6 lc "#a2d9d1" notitle, \
"" every 9::8 using 1:3:xtic(2) with boxes fs pattern 6 lc "#a2d9d1" notitle