method
benchmark
v3.2.13 -
Show latest stable
- Class:
ActiveSupport::Testing::Performance::Metrics::Base
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