Sha256: 5fea32d522f6dff2ce2bc216de2fd973f3aee29ccfbf0529b199858465e60ea8

Contents?: true

Size: 234 Bytes

Versions: 1

Compression:

Stored size: 234 Bytes

Contents

require 'benchmark'

n = 5000000
Benchmark.bmbm do |x|
  x.report("string") do
    n.times do
      'hello'
    end
  end
  x.report('translatable string') do
    require 'translate_self'
    n.times do
      'hello'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translate_self-0.6.0 benchmark.rb