Sha256: 207b9a4ea546395c3b99e0727f13af087b7dfa5450761d8ed1e337f678eae555

Contents?: true

Size: 127 Bytes

Versions: 11

Compression:

Stored size: 127 Bytes

Contents

require 'liquid/timing'

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
liquid-ext-2.0.3 lib/liquid/benchmark.rb
liquid-ext-2.0.2 lib/liquid/benchmark.rb
liquid-ext-2.0.1 lib/liquid/benchmark.rb
liquid-ext-2.0.0 lib/liquid/benchmark.rb
liquid-ext-1.2.6 lib/liquid/benchmark.rb
liquid-ext-1.2.5 lib/liquid/benchmark.rb
liquid-ext-1.2.4 lib/liquid/benchmark.rb
liquid-ext-1.2.2 lib/liquid/benchmark.rb
liquid-ext-1.2.1 lib/liquid/benchmark.rb
liquid-ext-1.2.0 lib/liquid/benchmark.rb
liquid-ext-1.1.1 lib/liquid/benchmark.rb