[macruby-changes] [MacRuby/MacRuby] f192ee: eliminate processing when was passed receiver in A...
noreply at github.com
noreply at github.com
Sat Jun 4 22:01:40 PDT 2011
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: f192eecf71f79026e3ab47d755b3670ccf9d1698
https://github.com/MacRuby/MacRuby/commit/f192eecf71f79026e3ab47d755b3670ccf9d1698
Author: Watson <watson1978 at 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
More information about the macruby-changes
mailing list