Issue #5127 has been updated by Narihiro Nakamura.

Assignee set to Narihiro Nakamura

GC?????????????????????????????????????
----------------------------------------
Bug #5127:  ruby 1.9.3 prev1  ??? Array#[]=( Array.new ) ???1.9.2??????2?????????
http://redmine.ruby-lang.org/issues/5127

Author: Anonymous
Status: Open
Priority: Normal
Assignee: Narihiro Nakamura
Category: 
Target version: 1.9.3
ruby -v: -


 Array????????????? Array#[]= ??設???????????????
 ruby 1.9.3 prev1 ??? 1.9.2 p290 ???????????2??????????????????????????????
 ???????????????????????
 
 (????籡???????????????訳?????????????????????????????????)
 
 ----
 require 'benchmark'
 
 Benchmark.bm(22) do |x|
   x.report "Array.new" do
     1_000_000.times do
       Array.new(100)
     end
   end
 
   x.report "Array#[]= with Array" do
     a = Array.new(1_000_000)
     1_000_000.times do |i|
       a[i] = Array.new(100)
     end
   end
 end
 ----
 
 ????????????????????????????????????以???????????????????????????
 $ ruby19 -v bm_array.rb
 ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
                             user     system      total        real
 Array.new               0.600000   0.140000   0.740000 (  0.740639)
 Array#[]= with Array    8.590000   0.300000   8.890000 (  8.874507)
 
 $ ruby -v bm_array.rb
 ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-darwin11.0.0]
                              user     system      total        real
 Array.new                0.670000   0.160000   0.830000 (  0.826589)
 Array#[]= with Array    16.160000   0.280000  16.440000 ( 16.597618)
 
 
 使?????????????????
 - OS      : Mac OS X 10.7
 - CPU     : Intel Core i5
 - Memory  : 4GB
 - compiler: gcc 4.2.1
 ???????
 
 
 以???????????????????????????????????????


-- 
http://redmine.ruby-lang.org