Sha256: a68b406e4608f6bd781edb66e15ef517b4586e89bd46cb675be664a85d5777f8

Contents?: true

Size: 148 Bytes

Versions: 21

Compression:

Stored size: 148 Bytes

Contents

require 'liquid/timing'

module Benchmark
  def realtime(&block)
    timing = Timing.start
    yield
    timing.stop.to_f / 1_000_000_000
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
liquid-ext-3.5.3 lib/liquid/benchmark.rb
liquid-ext-3.5.2 lib/liquid/benchmark.rb
liquid-ext-3.5.0 lib/liquid/benchmark.rb
liquid-ext-3.4.2 lib/liquid/benchmark.rb
liquid-ext-3.4.1 lib/liquid/benchmark.rb
liquid-ext-3.4.0 lib/liquid/benchmark.rb
liquid-ext-3.3.10 lib/liquid/benchmark.rb
liquid-ext-3.3.9 lib/liquid/benchmark.rb
liquid-ext-3.3.8 lib/liquid/benchmark.rb
liquid-ext-3.3.7 lib/liquid/benchmark.rb
liquid-ext-3.3.6 lib/liquid/benchmark.rb
liquid-ext-3.3.5 lib/liquid/benchmark.rb
liquid-ext-3.3.4 lib/liquid/benchmark.rb
liquid-ext-3.3.3 lib/liquid/benchmark.rb
liquid-ext-3.3.2 lib/liquid/benchmark.rb
liquid-ext-3.3.0 lib/liquid/benchmark.rb
liquid-ext-3.2.0 lib/liquid/benchmark.rb
liquid-ext-3.1.2 lib/liquid/benchmark.rb
liquid-ext-3.1.1 lib/liquid/benchmark.rb
liquid-ext-3.1.0 lib/liquid/benchmark.rb