diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-02-04 17:16:25 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-06-27 20:44:08 +0200 |
commit | 1db54d7d01ea36a9d8c0c6276d66d04a9a6c2fac (patch) | |
tree | 360223f1b9ac96624cb070f4e884b7850b60920b /activesupport/lib/active_support/testing/performance/ruby.rb | |
parent | 63d4894a58825e9d1fb520ec6ac663e4d8529596 (diff) | |
download | rails-1db54d7d01ea36a9d8c0c6276d66d04a9a6c2fac.tar.gz rails-1db54d7d01ea36a9d8c0c6276d66d04a9a6c2fac.tar.bz2 rails-1db54d7d01ea36a9d8c0c6276d66d04a9a6c2fac.zip |
Backport rails/rails-perftest#2 to fix rake test:benchmark
Diffstat (limited to 'activesupport/lib/active_support/testing/performance/ruby.rb')
-rw-r--r-- | activesupport/lib/active_support/testing/performance/ruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/performance/ruby.rb b/activesupport/lib/active_support/testing/performance/ruby.rb index 50c4852d4c..5aaed2bbe7 100644 --- a/activesupport/lib/active_support/testing/performance/ruby.rb +++ b/activesupport/lib/active_support/testing/performance/ruby.rb @@ -9,7 +9,7 @@ module ActiveSupport module Testing module Performance DEFAULTS.merge!( - if ARGV.include?('--benchmark') + if ENV["BENCHMARK_TESTS"] { :metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time] } else { :min_percent => 0.01, |