Skip to content
Browse files

fix a bug where the GC wasn't being triggered at the start of the MRI…

… benchmarks
  • Loading branch information...
1 parent 93a583e commit 15bff5a86e916ee250f800b7c67d79fed9d5757b @goncalossilva goncalossilva committed Mar 28, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/lib/active_support/testing/performance/ruby/mri.rb
View
1 activesupport/lib/active_support/testing/performance/ruby/mri.rb
@@ -8,6 +8,7 @@ class Base
if GC.respond_to?(:enable_stats)
def with_gc_stats
GC.enable_stats
+ GC.start
yield
ensure
GC.disable_stats

0 comments on commit 15bff5a

Please sign in to comment.
Something went wrong with that request. Please try again.