Add a benchmarking script for string-concat
This commit is contained in:
parent
c92ad3b595
commit
95e96a0f83
|
@ -0,0 +1,8 @@
|
|||
require 'benchmark/ips'
|
||||
|
||||
url = "http://jekyllrb.com"
|
||||
|
||||
Benchmark.ips do |x|
|
||||
x.report('+=') { url += '/' }
|
||||
x.report('<<') { url << '/' }
|
||||
end
|
Loading…
Reference in New Issue