Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* before user system total real len == rlen 0.860000 0.000000 0.860000 ( 0.852845) len != rlen 21.180000 0.010000 21.190000 ( 21.186979) * after user system total real len == rlen 0.050000 0.000000 0.050000 ( 0.056620) len != rlen 0.150000 0.000000 0.150000 ( 0.145373) {{{ require 'benchmark' Benchmark.bm(10) do |x| ary = Array.new(1000) tmp = ["a"] * 1100 x.report "len == rlen" do 10000.times do ary[100, tmp.size] = tmp end end x.report "len != rlen" do 10000.times do ary[100, tmp.size - 1] = tmp end end end }}}
- Loading branch information