method

benchmark

rails latest stable - Class: ActiveSupport::Testing::Performance::Metrics::Base

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

benchmark()
public

No documentation available.

# File activesupport/lib/active_support/testing/performance.rb, line 261
          def benchmark            
            with_gc_stats do
              before = measure
              yield
              @total += (measure - before)
            end
          end