diff options
author | Gonçalo Silva <goncalossilva@gmail.com> | 2011-03-28 01:32:56 +0100 |
---|---|---|
committer | Gonçalo Silva <goncalossilva@gmail.com> | 2011-03-28 01:32:56 +0100 |
commit | e6cb3962bb51aa1f91487117b99e660cc2c43e37 (patch) | |
tree | eb470665aa4fa677ef85b27e98b831d233c8746a /activesupport/lib/active_support/testing/performance/rubinius.rb | |
parent | e17f60879782b3b0d8a4bc2444e1d024c65ec59e (diff) | |
download | rails-e6cb3962bb51aa1f91487117b99e660cc2c43e37.tar.gz rails-e6cb3962bb51aa1f91487117b99e660cc2c43e37.tar.bz2 rails-e6cb3962bb51aa1f91487117b99e660cc2c43e37.zip |
benchmarking metrics are also implementation-specific
Diffstat (limited to 'activesupport/lib/active_support/testing/performance/rubinius.rb')
-rw-r--r-- | activesupport/lib/active_support/testing/performance/rubinius.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/performance/rubinius.rb b/activesupport/lib/active_support/testing/performance/rubinius.rb index 67d21e2a43..bdbb530b37 100644 --- a/activesupport/lib/active_support/testing/performance/rubinius.rb +++ b/activesupport/lib/active_support/testing/performance/rubinius.rb @@ -3,7 +3,9 @@ require 'rubinius/agent' module ActiveSupport module Testing module Performance - if !ARGV.include?('--benchmark') + if ARGV.include?('--benchmark') + DEFAULTS.merge!({:metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time]}) + else DEFAULTS.merge!( { :metrics => [:wall_time], :formats => [:flat, :graph] }) |