Files
jekyll/benchmark/string-concat
2014-10-22 00:56:54 -07:00

9 lines
143 B
Plaintext

require 'benchmark/ips'
url = "http://jekyllrb.com"
Benchmark.ips do |x|
x.report('+=') { url += '/' }
x.report('<<') { url << '/' }
end