benchmark-http 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1051b210823295993962642c3332aed8d67e8160046ed22bb40f0848eb8ab5e8
4
- data.tar.gz: 7da401da4d648dac3ec2f7ef8d378f6e0a09f44f14ee1a6d482d09f5dc64b12f
3
+ metadata.gz: af51492a2e3f64bc006048bb0fe4a426f78209b92ca662011ee1060bf8551690
4
+ data.tar.gz: 2503cba253b800bb58cdbb8b5516125593f5a7ad84190ef8a8a18fd967557d84
5
5
  SHA512:
6
- metadata.gz: 4525e416cc2f823ee39e888bdb66cf37c8fd284fbcf2466252dcdb6c954c86add90cfbd5bdc0a8e14f27df298cb5651335bde1a1169189f974fd1334aa7f774c
7
- data.tar.gz: cb4a1eef78767368407f9fad3235b4a3446cbe5d327006b019cb78c47ee4bbce24183f7530a047820f0bcddda1b851282a6a30c8ec9142f205b72ffa2bbd8767
6
+ metadata.gz: 5516102e012839fc5c8d910ebcfbdd0e0816de5b5dd067bbeeff748622fa4fa4c08e176da4319e6ae2eda13f6aea2e85b6c5338882343ead5d1840190d7cb180
7
+ data.tar.gz: 1b29fd8ba7e1bf11553ab143374ba49a23c1d612cc92455c10dc75d5a116660fe34a839d4b7ae20c6326f9c692238ff4b2f9fb4188b2ede4307ce72ae1a402c1
@@ -36,6 +36,7 @@ module Benchmark
36
36
  options do
37
37
  option '-t/--threshold <factor>', "The acceptable latency penalty when making concurrent requests", default: 1.2, type: Float
38
38
  option '-c/--confidence <factor>', "The confidence required when computing latency (lower is less reliable but faster)", default: 0.99, type: Float
39
+ option '-m/--minimum <count>', "The minimum number of connections to make", default: 1, type: Integer
39
40
  end
40
41
 
41
42
  many :hosts, "One or more hosts to benchmark"
@@ -80,12 +81,12 @@ module Benchmark
80
81
 
81
82
  Async::Reactor.run do |task|
82
83
  statistics = []
83
- minimum = 1
84
+ minimum = @options[:minimum]
84
85
 
85
86
  base = measure_performance(minimum, endpoint, request_path)
86
87
  statistics << base
87
88
 
88
- current = 2
89
+ current = minimum * 2
89
90
  maximum = nil
90
91
 
91
92
  while statistics.last.concurrency < current
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Benchmark
22
22
  module HTTP
23
- VERSION = "0.7.0"
23
+ VERSION = "0.8.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams