Permalink
Browse files

Use a single IPS block so all scenarios warm up + report together.

  • Loading branch information...
1 parent f0a86ed commit 37598b95bdbba3dd6ade7d4b65b6ffe78b14af49 @headius headius committed Jan 7, 2013
Showing with 0 additions and 8 deletions.
  1. +0 −8 benchmark/tiers/0/bm_inline_cache.rb
@@ -35,9 +35,7 @@ def call_on(obj)
i += 1
end
end
-end
-Benchmark.ips do |x|
x.report "bimorphic call site" do |times|
i = 0
while i < times
@@ -46,9 +44,7 @@ def call_on(obj)
i += 1
end
end
-end
-Benchmark.ips do |x|
x.report "polymorphic call site with 3 entrie" do |times|
i = 0
while i < times
@@ -58,9 +54,7 @@ def call_on(obj)
i += 1
end
end
-end
-Benchmark.ips do |x|
x.report "polymorphic call site with 6 entrie" do |times|
i = 0
while i < times
@@ -73,9 +67,7 @@ def call_on(obj)
i += 1
end
end
-end
-Benchmark.ips do |x|
x.report "megamorphic call site with 10 entrie" do |times|
i = 0
while i < times

0 comments on commit 37598b9

Please sign in to comment.