Methods
Included Modules
- ActiveSupport::Testing::SetupAndTeardown START:includes
- ActiveSupport::Testing::SetupAndTeardown START:includes
Classes and Modules
- MODULE ActiveSupport::Testing::Performance::ForClassicTestUnit
- MODULE ActiveSupport::Testing::Performance::ForMiniTest
- MODULE ActiveSupport::Testing::Performance::Metrics
- CLASS ActiveSupport::Testing::Performance::Benchmarker
- CLASS ActiveSupport::Testing::Performance::Performer
- CLASS ActiveSupport::Testing::Performance::Profiler
Constants
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 |
each implementation should define metrics and freeze the defaults |
Instance Public methods
Instance Protected methods
overridden by each implementation
# File activesupport/lib/active_support/testing/performance.rb, line 136 136: def run_profile(metric) 137: klass = full_profile_options[:benchmark] ? Benchmarker : Profiler 138: performer = klass.new(self, metric) 139: 140: performer.run 141: puts performer.report 142: performer.record 143: end