class ActiveSupport::Testing::Performance::Performer
Public Class Methods
new(harness, metric)
click to toggle source
# File lib/rails/perftest/active_support/testing/performance.rb, line 124 def initialize(harness, metric) @harness, @metric, @supported = harness, metric, false end
Public Instance Methods
report()
click to toggle source
# File lib/rails/perftest/active_support/testing/performance.rb, line 128 def report if @supported rate = @total / full_profile_options[:runs] '%20s: %s' % [@metric.name, @metric.format(rate)] else '%20s: unsupported' % @metric.name end end
Protected Instance Methods
output_filename()
click to toggle source
# File lib/rails/perftest/active_support/testing/performance.rb, line 138 def output_filename "#{full_profile_options[:output]}/#{full_test_name}_#{@metric.name}" end