[MacRuby/MacRuby] f192ee: eliminate processing when was passed receiver in A...
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: f192eecf71f79026e3ab47d755b3670ccf9d1698 https://github.com/MacRuby/MacRuby/commit/f192eecf71f79026e3ab47d755b3670ccf... Author: Watson <watson1978@gmail.com> Date: 2011-06-04 (Sat, 04 Jun 2011) Changed paths: M array.c Log Message: ----------- eliminate processing when was passed receiver in Array#replace. - before user system total real 0.250000 0.000000 0.250000 ( 0.251814) - after user system total real 0.210000 0.000000 0.210000 ( 0.214612) ---- require 'benchmark' Benchmark.bm do |x| ary = ["a", "b", 1.0] * 100 x.report{ 1_000_000.times do ary.replace(ary) end } end
participants (1)
-
noreply@github.com