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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a90d0eb56db8b3b59f332bddfc6922a04d665bf0
4
- data.tar.gz: 5da05eee4add84cc3ad4de8121cdbfaf912a1a14
3
+ metadata.gz: 6bb55b14a6661c98fb64522d6b5fe943c0febdd7
4
+ data.tar.gz: d8c3b85abd768f3f93824145504d397ac7cad33f
5
5
  SHA512:
6
- metadata.gz: 02d6a923a95a529fcc83552f5e40b6988cb2b22449ee964af315bd867e69c45521e43d146a3251f54d4d623fdf84d6670272956ec2d83d8c346ea1ffd8b9de9d
7
- data.tar.gz: 0fda977c19ab3012a0b2ba4a47c1a3d3f5a96e72770a5e17a1c2e567b345416da3b30d5dbb05dfc05a238499bb5fb2b3232e21c9e46dd265616ba3f6e2f3e7fe
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
@@ -1,3 +1,3 @@
1
1
  module RailsApiBenchmark
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
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.0
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