aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing/performance/ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/testing/performance/ruby.rb')
-rw-r--r--activesupport/lib/active_support/testing/performance/ruby.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/testing/performance/ruby.rb b/activesupport/lib/active_support/testing/performance/ruby.rb
index 892baceeb2..13dfebbece 100644
--- a/activesupport/lib/active_support/testing/performance/ruby.rb
+++ b/activesupport/lib/active_support/testing/performance/ruby.rb
@@ -8,6 +8,12 @@ end
module ActiveSupport
module Testing
module Performance
+ if !ARGV.include?('--benchmark')
+ DEFAULTS.merge!(
+ { :metrics => [:process_time, :memory, :objects],
+ :formats => [:flat, :graph_html, :call_tree] })
+ end
+
protected
def run_gc
GC.start