derailed_benchmarks 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/derailed_benchmarks/tasks.rb +3 -3
- data/lib/derailed_benchmarks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6bbf373c25f791478f3890edeab279da2f13d42a9a7261c6e172f07e3e44713
|
4
|
+
data.tar.gz: fda7f0f615bccaa9409a98dc90f042e794f7fa510c0b64e9e2829843d173f240
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 179ff4c0663ecb7960008c81b0e1133cb1b41ed73978c17ca0213612ba39d70312238121c63fc4de669c8f0f4f15a33142dbd778b815b1d6ee2ed184501fc4af
|
7
|
+
data.tar.gz: 8e222be9b6bb2608a360004ad77bcda16b0839145656401bd1b65816a4c8ef6c63358060f852d1f604f5cbb2ea84c5e1435b445267a81414cca64e9678e1a4b6
|
data/CHANGELOG.md
CHANGED
@@ -68,7 +68,7 @@ namespace :perf do
|
|
68
68
|
puts "Endpoint: #{ PATH_TO_HIT.inspect }"
|
69
69
|
|
70
70
|
HTTP_HEADER_PREFIX = "HTTP_".freeze
|
71
|
-
RACK_HTTP_HEADERS = ENV.select { |key| key.
|
71
|
+
RACK_HTTP_HEADERS = ENV.select { |key| key.start_with?(HTTP_HEADER_PREFIX) }
|
72
72
|
|
73
73
|
HTTP_HEADERS = RACK_HTTP_HEADERS.keys.inject({}) do |hash, rack_header_name|
|
74
74
|
# e.g. "HTTP_ACCEPT_CHARSET" -> "Accept-Charset"
|
@@ -83,7 +83,7 @@ namespace :perf do
|
|
83
83
|
require 'rack/test'
|
84
84
|
require 'rack/file'
|
85
85
|
|
86
|
-
DERAILED_APP = DerailedBenchmarks.add_auth(DERAILED_APP)
|
86
|
+
DERAILED_APP = DerailedBenchmarks.add_auth(Object.class_eval { remove_const(:DERAILED_APP) })
|
87
87
|
if server = ENV["USE_SERVER"]
|
88
88
|
@port = (3000..3900).to_a.sample
|
89
89
|
puts "Port: #{ @port.inspect }"
|
@@ -118,7 +118,7 @@ namespace :perf do
|
|
118
118
|
require 'benchmark'
|
119
119
|
|
120
120
|
Benchmark.bm { |x|
|
121
|
-
x.report("#{TEST_COUNT} requests") {
|
121
|
+
x.report("#{TEST_COUNT} derailed requests") {
|
122
122
|
TEST_COUNT.times {
|
123
123
|
call_app
|
124
124
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: derailed_benchmarks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Schneeman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: heapy
|