rails_api_benchmark 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gnuplotscript +34 -0
- data/lib/rails_api_benchmark/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bb55b14a6661c98fb64522d6b5fe943c0febdd7
|
4
|
+
data.tar.gz: d8c3b85abd768f3f93824145504d397ac7cad33f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16d5d896be871a3c49d11a048249177993b07b6ba8c495462b915f8db1854636367127e35a85e1916e6054f875fdd6c94266d39a0f0108c31063d579d15b3dfa
|
7
|
+
data.tar.gz: bd060c86bbc5e8b03cf4432777d19989f5883c70c4685db42c5ff1d2d8923e26ad4b26750a822d18daa078c690f675e2e9c5475c60bbb8277523e2fec4a304ac
|
data/gnuplotscript
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
#!/usr/bin/gnuplot
|
2
|
+
|
3
|
+
if (!exists("plot_title")) plot_title='Benchmark'
|
4
|
+
if (!exists("plot_file")) plot_title='timeseries.jpg'
|
5
|
+
|
6
|
+
# Let's output to a jpeg file
|
7
|
+
set terminal jpeg size 1280,720
|
8
|
+
# This sets the aspect ratio of the graph
|
9
|
+
set size 1, 1
|
10
|
+
# The file we'll write to
|
11
|
+
set output plot_file
|
12
|
+
# The graph title
|
13
|
+
set title plot_title
|
14
|
+
# Where to place the legend/key
|
15
|
+
set key left top
|
16
|
+
# Draw gridlines oriented on the y axis
|
17
|
+
set grid y
|
18
|
+
# Specify that the x-series data is time data
|
19
|
+
set xdata time
|
20
|
+
# Specify the *input* format of the time data
|
21
|
+
set timefmt "%s"
|
22
|
+
# Specify the *output* format for the x-axis tick labels
|
23
|
+
set format x "%S"
|
24
|
+
# Label the x-axis
|
25
|
+
set xlabel 'seconds'
|
26
|
+
# Label the y-axis
|
27
|
+
set ylabel "response time (ms)"
|
28
|
+
# Tell gnuplot to use tabs as the delimiter instead of spaces (default)
|
29
|
+
set datafile separator '\t'
|
30
|
+
# Margin (I don't even know what I'm doing)
|
31
|
+
set offset graph 0, 0.10
|
32
|
+
# Plot the data
|
33
|
+
plot "plot.tsv" every ::2 using 2:5 title 'response time' with points
|
34
|
+
exit
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_api_benchmark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terry Raimondo
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- MIT-LICENSE
|
56
56
|
- README.md
|
57
57
|
- Rakefile
|
58
|
+
- gnuplotscript
|
58
59
|
- lib/rails_api_benchmark.rb
|
59
60
|
- lib/rails_api_benchmark/benchmark_tasks.rb
|
60
61
|
- lib/rails_api_benchmark/core.rb
|