-
Notifications
You must be signed in to change notification settings - Fork 9
/
backends-over-time.plot
77 lines (64 loc) · 2.7 KB
/
backends-over-time.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
# SVG output
set terminal svg size 1920,1080 dynamic font ",24"
# title
set title "curl backends" font ",48"
# where's the legend
set key top left
# Identify the axes
set ylabel "Number of backends"
set style line 1 \
linecolor rgb '#0060ad' \
linetype 2 linewidth 1 \
pointtype 7 pointsize 0.5
set style line 2 \
linecolor rgb '#808080' \
linetype 1 linewidth 1 \
pointtype 7 pointsize 0.5
set style line 3 \
linecolor rgb '#c0c080' \
linetype 1 linewidth 1 \
pointtype 7 pointsize 0.5
set style line 4 \
linecolor rgb '#c000c0' \
linetype 1 linewidth 1 \
pointtype 7 pointsize 0.5
set style line 5 \
linecolor rgb '#c00040' \
linetype 1 linewidth 1 \
pointtype 11 pointsize 0.5
set style line 6 \
linecolor rgb '#900040' \
linetype 1 linewidth 1 \
pointtype 17 pointsize 0.5
set style line 7 \
linecolor rgb '#300090' \
linetype 1 linewidth 1 \
pointtype 17 pointsize 0.5
set grid
unset border
# time formated using this format
set timefmt "%Y-%m-%d"
set xdata time
set yrange [0:]
set ytics 1 nomirror
set xtics rotate 3600*24*365.25 nomirror
unset mxtics
set pixmap 1 "stats/curl-symbol-light.png"
set pixmap 1 at screen 0.35, 0.30 width screen 0.30 behind
# set the format of the dates on the x axis
set format x "%Y"
set datafile separator ";"
plot 'tmp/tls-over-time.csv' using 1:3 with linespoints linestyle 1 title "TLS", \
'tmp/ssh-over-time.csv' using 1:3 with linespoints linestyle 2 title "SSH", \
'tmp/h1-over-time.csv' using 1:3 with linespoints linestyle 4 title "HTTP/1", \
'tmp/h2-over-time.csv' using 1:3 with linespoints linestyle 5 title "HTTP/2", \
'tmp/h3-over-time.csv' using 1:3 with linespoints linestyle 3 title "HTTP/3", \
'tmp/idn-over-time.csv' using 1:3 with linespoints linestyle 6 title "IDN", \
'tmp/resolver-over-time.csv' using 1:3 with linespoints linestyle 7 title "resolver", \
'tmp/tls-over-time.csv' using 1:3:2 with labels right offset -0.5,0.2 font ",14" rotate by -22 tc "#0060ad" title "", \
'tmp/ssh-over-time.csv' using 1:3:2 with labels right offset -0.5,0.2 font ",14" rotate by -22 tc "#808080" title "", \
'tmp/h1-over-time.csv' using 1:3:2 with labels right offset -0.5,0.2 font ",14" rotate by -22 tc "#c000c0" title "", \
'tmp/h2-over-time.csv' using 1:3:2 with labels right offset -0.5,0.2 font ",14" rotate by -22 tc "#c00040" title "", \
'tmp/h3-over-time.csv' using 1:3:2 with labels right offset -0.5,0.2 font ",14" rotate by -22 tc "#c0c080" title "", \
'tmp/idn-over-time.csv' using 1:3:2 with labels right offset -0.5,0.2 font ",14" rotate by -22 tc "#900040" title "", \
'tmp/resolver-over-time.csv' using 1:3:2 with labels right offset -0.5,0.2 font ",14" rotate by -22 tc "#300090" title ""