Issue #5127 has been updated by Motohiro KOSAKI.

Target version set to 1.9.3

???荀?????????????????障?????с???????宴?????????????障????????

----------------------------------------
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: 
Category: 
Target version: 1.9.3
ruby -v: -


 Array??????吾?с?????? Array#[]= ??ц┃絎?????????翫??????
 ruby 1.9.3 prev1 ??? 1.9.2 p290 ????莠???????2?????祉????????c?????????????????
 ?????怨?????????????障?????
 
 (??∝?ャ?膠??с???????違????潟??荐潟???????障??????????鴻??若??????????????)
 
 ----
 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