module Benchmark
Public Class Methods
# File activesupport/lib/active_support/core_ext/benchmark.rb, line 11 def ms 1000 * realtime { yield } end
Benchmark realtime in milliseconds.
Benchmark.realtime { User.all } # => 8.0e-05 Benchmark.ms { User.all } # => 0.074
© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.