DEBSOURCES
Skip Quicknav
sources / dlr-languages / 20090805%2Bgit.e6b28d27%2Bdfsg-3 / Merlin / Main / Languages / Ruby / Experimental / Strings / benchmarks.rb
12345678
require 'benchmark' x10000 = "x" * 10000 Benchmark.bm do |x| x.report { 10.times { "x" * 10_000_000 } } x.report { 20.times { x10000 * 10000 } } end