module

ActiveSupport::Testing::Performance

No documentation available for this module.

Constants

DEFAULTS = if benchmark = ARGV.include?('--benchmark') # HAX for rake test\n{ :benchmark => true,\n:runs => 4,\n:metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time],\n:output => 'tmp/performance' }\nelse\n{ :benchmark => false,\n:runs => 1,\n:min_percent => 0.01,\n:metrics => [:process_time, :memory, :objects],\n:formats => [:flat, :graph_html, :call_tree],\n:output => 'tmp/performance' }\nend.freeze

Files

  • activesupport/lib/active_support/testing/performance.rb