Sha256: 8773ed5e5d3f7917e1369b3337faf342f4697d86344867c978340bb39685748a
Contents?: true
Size: 375 Bytes
Versions: 3
Compression:
Stored size: 375 Bytes
Contents
require 'benchmark' n = 5000000 Benchmark.bmbm do |x| x.report("normal string") do n.times do 'hello' end end x.report('monkeypatched string') do require 'translate_self' n.times do 'hello' end end x.report('translatable string') do require 'translate_self' n.times do TranslatableString.new('hello') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
translate_self-0.9.0 | benchmark.rb |
translate_self-0.8.0 | benchmark.rb |
translate_self-0.7.0 | benchmark.rb |