From 15bff5a86e916ee250f800b7c67d79fed9d5757b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Mon, 28 Mar 2011 00:33:07 +0100 Subject: fix a bug where the GC wasn't being triggered at the start of the MRI benchmarks --- activesupport/lib/active_support/testing/performance/ruby/mri.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/lib/active_support/testing/performance') diff --git a/activesupport/lib/active_support/testing/performance/ruby/mri.rb b/activesupport/lib/active_support/testing/performance/ruby/mri.rb index 5fa0269b6a..512eff30e2 100644 --- a/activesupport/lib/active_support/testing/performance/ruby/mri.rb +++ b/activesupport/lib/active_support/testing/performance/ruby/mri.rb @@ -8,6 +8,7 @@ module ActiveSupport if GC.respond_to?(:enable_stats) def with_gc_stats GC.enable_stats + GC.start yield ensure GC.disable_stats -- cgit v1.2.3