puma-benchmark 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puma/benchmark/core.rb +2 -2
- data/lib/puma/benchmark/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: 16963573ba17d5cf158086f4985494e5e18f4ef7b669ff68fb26b00bc3968975
|
4
|
+
data.tar.gz: 909a8817a04f7ad407faf6514557777f2dc15a43fd28270d7612c822d3a8c0e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02f2d3ff5459925c7675b46982ca0b3421d058c835b534dc5e3acb4d8bef8efef10d54f02f3b6f1d8bb844e352b420e0afa8069d19169391d2ddfbd01924a31f
|
7
|
+
data.tar.gz: 3b34c378ba6cec53be1b02a3cc2a40cf6b268c9edfb56fadef0f1ca50cc4b7f244c8be04f555d06b0ab0462f0e276ebbf320e746482369dd39bde0244e76c4ca
|
data/lib/puma/benchmark/core.rb
CHANGED
@@ -8,8 +8,8 @@ module Puma
|
|
8
8
|
def initialize(params)
|
9
9
|
@base_url = params[:base_url] || 'http://localhost:3000'
|
10
10
|
@api = params[:api]
|
11
|
-
@max_threads = params[:threads]
|
12
|
-
@max_workers = params[:workers]
|
11
|
+
@max_threads = (params[:threads] || 4).to_i
|
12
|
+
@max_workers = (params[:workers]|| 4).to_i
|
13
13
|
@duration = params[:duration] || 30
|
14
14
|
@environment = params[:environment] || 'production'
|
15
15
|
@result = []
|