derailed_benchmarks 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +3 -3
- data/derailed_benchmarks.gemspec +1 -1
- data/lib/derailed_benchmarks/tasks.rb +9 -4
- data/lib/derailed_benchmarks/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf1b871ce8c7deffce17de7637c74d793a3a9e0
|
4
|
+
data.tar.gz: c46cba5071f6d1feeb3a9e298b98ef2cde8337c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8423754dffa98ae1667bd95a71d645f3114b3d2b42a9abd5d08f947f51bd2f5f7d771d33451a290f8344eded7eb5c7ffcc4e9e266641ec3f9e8e9eef26bb45f7
|
7
|
+
data.tar.gz: 542ee58f5378918bf2558448d9e691d9b9f38d6df700429839998180a5aec7919eae74fb9cea199b09d7f158771e0421fe1e7155cd1ba6e1f062ea3f74018aca
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
derailed_benchmarks (1.1.
|
4
|
+
derailed_benchmarks (1.1.2)
|
5
5
|
benchmark-ips (~> 2)
|
6
6
|
get_process_mem (~> 0)
|
7
|
-
|
7
|
+
heapy (~> 0)
|
8
8
|
memory_profiler (~> 0)
|
9
9
|
rack (~> 1)
|
10
10
|
rake (~> 10)
|
@@ -59,7 +59,7 @@ GEM
|
|
59
59
|
warden (~> 1.2.3)
|
60
60
|
erubis (2.7.0)
|
61
61
|
get_process_mem (0.2.0)
|
62
|
-
|
62
|
+
heapy (0.1.0)
|
63
63
|
hike (1.2.3)
|
64
64
|
i18n (0.7.0)
|
65
65
|
journey (1.0.4)
|
data/derailed_benchmarks.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_dependency "
|
21
|
+
gem.add_dependency "heapy", "~> 0"
|
22
22
|
gem.add_dependency "memory_profiler", "~> 0"
|
23
23
|
gem.add_dependency "get_process_mem", "~> 0"
|
24
24
|
gem.add_dependency "benchmark-ips", "~> 2"
|
@@ -270,17 +270,22 @@ namespace :perf do
|
|
270
270
|
|
271
271
|
file_name = "tmp/#{Time.now.iso8601}-heap.dump"
|
272
272
|
ObjectSpace.trace_object_allocations_start
|
273
|
-
|
273
|
+
puts "Running #{ TEST_COUNT } times"
|
274
|
+
TEST_COUNT.times {
|
275
|
+
call_app
|
276
|
+
}
|
274
277
|
GC.start
|
275
278
|
|
276
279
|
puts "Heap file generated: #{ file_name.inspect }"
|
277
280
|
ObjectSpace.dump_all(output: File.open(file_name, 'w'))
|
278
281
|
|
279
|
-
require '
|
282
|
+
require 'heapy'
|
280
283
|
|
281
|
-
|
284
|
+
Heapy::Analyzer.new(file_name).analyze
|
282
285
|
|
283
286
|
puts ""
|
284
|
-
puts "
|
287
|
+
puts "Run `$ heapy --help` for more options"
|
288
|
+
puts ""
|
289
|
+
puts "Also try uploading #{file_name.inspect} to http://tenderlove.github.io/heap-analyzer/"
|
285
290
|
end
|
286
291
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: derailed_benchmarks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Schneeman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: heapy
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|