diff options
author | Gonçalo Silva <goncalossilva@gmail.com> | 2011-03-28 00:33:07 +0100 |
---|---|---|
committer | Gonçalo Silva <goncalossilva@gmail.com> | 2011-03-28 00:33:07 +0100 |
commit | 15bff5a86e916ee250f800b7c67d79fed9d5757b (patch) | |
tree | d48749d8040cd77109bacc4ef362940aed95563e /activesupport/lib/active_support/testing | |
parent | 93a583eb184f0e3ba21adeab789c7d441ab98a65 (diff) | |
download | rails-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/active_support/testing')
-rw-r--r-- | activesupport/lib/active_support/testing/performance/ruby/mri.rb | 1 |
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 |