Sha256: cd85bc74cbe3fdd576b1b3a71a57a48403bc80aef4476c3d6dee61c4e2069ed1

Contents?: true

Size: 280 Bytes

Versions: 115

Compression:

Stored size: 280 Bytes

Contents

# frozen_string_literal: true

require "benchmark"

class << Benchmark
  # Benchmark realtime in milliseconds.
  #
  #   Benchmark.realtime { User.all }
  #   # => 8.0e-05
  #
  #   Benchmark.ms { User.all }
  #   # => 0.074
  def ms(&block)
    1000 * realtime(&block)
  end
end

Version data entries

115 entries across 109 versions & 15 rubygems

Version Path
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.3.4/lib/active_support/core_ext/benchmark.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.3.4/lib/active_support/core_ext/benchmark.rb
activesupport-7.2.0.beta2 lib/active_support/core_ext/benchmark.rb
activesupport-7.1.3.4 lib/active_support/core_ext/benchmark.rb
activesupport-7.0.8.4 lib/active_support/core_ext/benchmark.rb
activesupport-6.1.7.8 lib/active_support/core_ext/benchmark.rb
activesupport-7.2.0.beta1 lib/active_support/core_ext/benchmark.rb
activesupport-7.1.3.2 lib/active_support/core_ext/benchmark.rb
activesupport-7.1.3.1 lib/active_support/core_ext/benchmark.rb
activesupport-7.0.8.1 lib/active_support/core_ext/benchmark.rb
activesupport-6.1.7.7 lib/active_support/core_ext/benchmark.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3/lib/active_support/core_ext/benchmark.rb
activesupport-7.1.3 lib/active_support/core_ext/benchmark.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-7.0.2.3/lib/active_support/core_ext/benchmark.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/core_ext/benchmark.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-7.0.3.1/lib/active_support/core_ext/benchmark.rb
activesupport-7.1.2 lib/active_support/core_ext/benchmark.rb
activesupport-7.1.1 lib/active_support/core_ext/benchmark.rb
activesupport-7.1.0 lib/active_support/core_ext/benchmark.rb
activesupport-7.1.0.rc2 lib/active_support/core_ext/benchmark.rb