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 +4 -4
- data/lib/benchmark/http/command/concurrency.rb +3 -2
- data/lib/benchmark/http/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af51492a2e3f64bc006048bb0fe4a426f78209b92ca662011ee1060bf8551690
|
4
|
+
data.tar.gz: 2503cba253b800bb58cdbb8b5516125593f5a7ad84190ef8a8a18fd967557d84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|