aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-07-27 21:46:12 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-07-28 13:54:10 -0700
commit2cf161a384cc361d856aa76639bcb30570d67286 (patch)
treee55de326bef5956f722d8eed9b267448b20fb75f /activesupport
parentae6105ef01b2a767afa2bf5b64c90d288c752995 (diff)
downloadrails-2cf161a384cc361d856aa76639bcb30570d67286.tar.gz
rails-2cf161a384cc361d856aa76639bcb30570d67286.tar.bz2
rails-2cf161a384cc361d856aa76639bcb30570d67286.zip
Once is enough, mmk
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/testing/performance.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb
index 71d6f4d9c6..70a7f84023 100644
--- a/activesupport/lib/active_support/testing/performance.rb
+++ b/activesupport/lib/active_support/testing/performance.rb
@@ -72,13 +72,13 @@ module ActiveSupport
protected
def run_warmup
- 5.times { GC.start }
+ GC.start
time = Metrics::Time.new
run_test(time, :benchmark)
puts "%s (%s warmup)" % [full_test_name, time.format(time.total)]
- 5.times { GC.start }
+ GC.start
end
def run_profile(metric)