forked from mihaicracan/web-rest-api-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rps.plt
29 lines (24 loc) · 1009 Bytes
/
rps.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
# 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
set style line 1 lc rgb "red"
set style line 2 lc rgb "blue"
set style fill solid
set boxwidth 0.5
set ylabel 'rps'
set xtics rotate by -45
set grid ytics linestyle 1
mycolor(x) = ((x*11244898) + 2851770)
set output "graphs/rps-hello.jpg"
set title "requests per second /hello"
plot "data/rps-hello.dat" using 0:2:(mycolor($0)):xtic(1) with boxes lc rgb variable notitle
set output "graphs/rps-compute.jpg"
set title "requests per second /compute"
plot "data/rps-compute.dat" using 0:2:(mycolor($0)):xtic(1) with boxes lc rgb variable notitle
set output "graphs/rps-countries.jpg"
set title "requests per second /countries"
plot "data/rps-countries.dat" using 0:2:(mycolor($0)):xtic(1) with boxes lc rgb variable notitle
set output "graphs/rps-users.jpg"
set title "requests per second /users"
plot "data/rps-users.dat" using 0:2:(mycolor($0)):xtic(1) with boxes lc rgb variable notitle