aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-03-28 00:33:07 +0100
committerGonçalo Silva <goncalossilva@gmail.com>2011-03-28 00:33:07 +0100
commit15bff5a86e916ee250f800b7c67d79fed9d5757b (patch)
treed48749d8040cd77109bacc4ef362940aed95563e /activesupport/lib
parent93a583eb184f0e3ba21adeab789c7d441ab98a65 (diff)
downloadrails-15bff5a86e916ee250f800b7c67d79fed9d5757b.tar.gz
rails-15bff5a86e916ee250f800b7c67d79fed9d5757b.tar.bz2
rails-15bff5a86e916ee250f800b7c67d79fed9d5757b.zip
fix a bug where the GC wasn't being triggered at the start of the MRI benchmarks
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/testing/performance/ruby/mri.rb1
1 files changed, 1 insertions, 0 deletions
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