forked from sotomskir/web-rest-api-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtimeseries.plt
69 lines (69 loc) · 3.97 KB
/
timeseries.plt
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
# Let's output to a jpeg file
set terminal jpeg size 500,500
# This sets the aspect ratio of the graph
set size 1, 1
# Where to place the legend/key
set key left top
# Draw gridlines oriented on the y axis
set grid y
# Specify that the x-series data is time data
set xdata time
# Specify the *input* format of the time data
set timefmt "%s"
# Specify the *output* format for the x-axis tick labels
set format x "%S"
# Label the x-axis
set xlabel 'seconds'
# Label the y-axis
set ylabel "response time (ms)"
# Tell gnuplot to use tabs as the delimiter instead of spaces (default)
set datafile separator '\t'
set output "graphs/hello.jpg"
set title "Benchmark /hello"
# Plot the data
plot "data/hello-c10-java.tsv" every ::2 using 2:5 title 'java' with points, \
"data/hello-c10-laravel.tsv" every ::2 using 2:5 title 'laravel' with points, \
"data/hello-c10-go.tsv" every ::2 using 2:5 title 'go' with points, \
"data/hello-c10-node.tsv" every ::2 using 2:5 title 'node' with points, \
"data/hello-c10-dotnet.tsv" every ::2 using 2:5 title 'dotnet' with points, \
"data/hello-c10-django+debug.tsv" every ::2 using 2:5 title 'django+debug' with points, \
"data/hello-c10-django+gunicorn.tsv" every ::2 using 2:5 title 'django+gunicorn' with points, \
"data/hello-c10-django+uwsgi.tsv" every ::2 using 2:5 title 'django+uwsgi' with points, \
"data/hello-c10-falcon.tsv" every ::2 using 2:5 title 'falcon' with points
set output "graphs/compute.jpg"
set title "Benchmark /compute"
# Plot the data
plot "data/compute-c10-java.tsv" every ::2 using 2:5 title 'java' with points, \
"data/compute-c10-laravel.tsv" every ::2 using 2:5 title 'laravel' with points, \
"data/compute-c10-go.tsv" every ::2 using 2:5 title 'go' with points, \
"data/compute-c10-node.tsv" every ::2 using 2:5 title 'node' with points, \
"data/compute-c10-dotnet.tsv" every ::2 using 2:5 title 'dotnet' with points, \
"data/compute-c10-django+debug.tsv" every ::2 using 2:5 title 'django+debug' with points, \
"data/compute-c10-django+gunicorn.tsv" every ::2 using 2:5 title 'django+gunicorn' with points, \
"data/compute-c10-django+uwsgi.tsv" every ::2 using 2:5 title 'django+uwsgi' with points, \
"data/compute-c10-falcon.tsv" every ::2 using 2:5 title 'falcon' with points
set output "graphs/countries.jpg"
set title "Benchmark /countries"
# Plot the data
plot "data/countries-c10-java.tsv" every ::2 using 2:5 title 'java' with points, \
"data/countries-c10-laravel.tsv" every ::2 using 2:5 title 'laravel' with points, \
"data/countries-c10-go.tsv" every ::2 using 2:5 title 'go' with points, \
"data/countries-c10-node.tsv" every ::2 using 2:5 title 'node' with points, \
"data/countries-c10-dotnet.tsv" every ::2 using 2:5 title 'dotnet' with points, \
"data/countries-c10-django+debug.tsv" every ::2 using 2:5 title 'django+debug' with points, \
"data/countries-c10-django+gunicorn.tsv" every ::2 using 2:5 title 'django+gunicorn' with points, \
"data/countries-c10-django+uwsgi.tsv" every ::2 using 2:5 title 'django+uwsgi' with points, \
"data/countries-c10-falcon.tsv" every ::2 using 2:5 title 'falcon' with points
set output "graphs/users.jpg"
set title "Benchmark /users"
# Plot the data
plot "data/users-c10-java.tsv" every ::2 using 2:5 title 'java' with points, \
"data/users-c10-laravel.tsv" every ::2 using 2:5 title 'laravel' with points, \
"data/users-c10-go.tsv" every ::2 using 2:5 title 'go' with points, \
"data/users-c10-node.tsv" every ::2 using 2:5 title 'node' with points, \
"data/users-c10-dotnet.tsv" every ::2 using 2:5 title 'dotnet' with points, \
"data/users-c10-django+debug.tsv" every ::2 using 2:5 title 'django+debug' with points, \
"data/users-c10-django+gunicorn.tsv" every ::2 using 2:5 title 'django+gunicorn' with points, \
"data/users-c10-django+uwsgi.tsv" every ::2 using 2:5 title 'django+uwsgi' with points, \
"data/users-c10-falcon.tsv" every ::2 using 2:5 title 'falcon' with points
exit