method

benchmark

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

Method deprecated or moved

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

benchmark()
public

No documentation available.

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