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