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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80d7f5f10f180e39fb577d32f65bb8589a490ab6af9ecce6950118ab796beb08
4
- data.tar.gz: 06c25aae71670e1f11fec2c128ecc2095b643edd400e315385b0d94819e51e36
3
+ metadata.gz: b6bbf373c25f791478f3890edeab279da2f13d42a9a7261c6e172f07e3e44713
4
+ data.tar.gz: fda7f0f615bccaa9409a98dc90f042e794f7fa510c0b64e9e2829843d173f240
5
5
  SHA512:
6
- metadata.gz: 7bdcefb60dc2b293fec7f81067b28ac2326ed2f4cdbb46bc3e006731c9624ff7edf770a82727e4ec568ad20f8c5fca9893a09109985a143faf8525c369556b06
7
- data.tar.gz: b9e40ea61ee705fbeaa00920d2113e2d8bdc329a569ca139504885b8f91fb23021ace783c2da36617c11fee99b3a299c1ee8e3ce71dd81a1b743da14d0cac55d
6
+ metadata.gz: 179ff4c0663ecb7960008c81b0e1133cb1b41ed73978c17ca0213612ba39d70312238121c63fc4de669c8f0f4f15a33142dbd778b815b1d6ee2ed184501fc4af
7
+ data.tar.gz: 8e222be9b6bb2608a360004ad77bcda16b0839145656401bd1b65816a4c8ef6c63358060f852d1f604f5cbb2ea84c5e1435b445267a81414cca64e9678e1a4b6
@@ -1,5 +1,11 @@
1
1
  # A Log of Changes!
2
2
 
3
+ ## [1.3.5]
4
+
5
+ - Output of `test` now emits the word "derailed" for easier grepping.
6
+ - Fix "already initialized constant" warning
7
+
8
+
3
9
  ## [1.3.4]
4
10
 
5
11
  - Allow for "warming up tasks" via WARM_COUNT env var #119
@@ -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.starts_with?(HTTP_HEADER_PREFIX) }
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
  }
@@ -1,3 +1,3 @@
1
1
  module DerailedBenchmarks
2
- VERSION = "1.3.4"
2
+ VERSION = "1.3.5"
3
3
  end
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
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-03-09 00:00:00.000000000 Z
11
+ date: 2018-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: heapy