benchmark.rb in translate_self-0.6.0 vs benchmark.rb in translate_self-0.7.0

- old
+ new

@@ -1,16 +1,22 @@ require 'benchmark' n = 5000000 Benchmark.bmbm do |x| - x.report("string") do + x.report("normal string") do n.times do 'hello' end end - x.report('translatable string') do + 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 \ No newline at end of file