Module: ActiveSupport::Testing::Performance
- Extended by:
- Concern
- Included in:
- ActionDispatch::PerformanceTest
- Defined in:
- activesupport/lib/active_support/testing/performance.rb,
activesupport/lib/active_support/testing/performance/ruby.rb,
activesupport/lib/active_support/testing/performance/jruby.rb,
activesupport/lib/active_support/testing/performance/ruby/mri.rb,
activesupport/lib/active_support/testing/performance/rubinius.rb,
activesupport/lib/active_support/testing/performance/ruby/yarv.rb
Defined Under Namespace
Modules: ForClassicTestUnit, ForMiniTest, Metrics Classes: Benchmarker, Performer, Profiler
Constant Summary collapse
- DEFAULTS =
each implementation should define metrics and freeze the defaults
if ARGV.include?('--benchmark') # HAX for rake test { :runs => 4, :output => 'tmp/performance', :benchmark => true } else { :runs => 1, :output => 'tmp/performance', :benchmark => false } end
Instance Method Summary collapse
Methods included from Concern
append_features, extended, included
Instance Method Details
#full_profile_options ⇒ Object
36 37 38 |
# File 'activesupport/lib/active_support/testing/performance.rb', line 36 def DEFAULTS.merge() end |
#full_test_name ⇒ Object
40 41 42 |
# File 'activesupport/lib/active_support/testing/performance.rb', line 40 def full_test_name "#{self.class.name}##{method_name}" end |