benchmark.rb in translate_self-0.9.0 vs benchmark.rb in translate_self-1.0.0
- old
+ new
@@ -1,10 +1,10 @@
require 'benchmark'
-n = 5000000
+n = 5_000_000
Benchmark.bmbm do |x|
- x.report("normal string") do
+ x.report('normal string') do
n.times do
'hello'
end
end
x.report('monkeypatched string') do
@@ -17,6 +17,6 @@
require 'translate_self'
n.times do
TranslatableString.new('hello')
end
end
-end
\ No newline at end of file
+end