From: "F. Senault" Date: 2008-07-30T17:04:30+09:00 Subject: Re: Interesting Array Initialization Typo Le 29 juillet � 21:46, Justin Collins a �crit : > Here's what I got: > > Rehearsal -------------------------------------- > << 0.990000 0.290000 1.280000 ( 1.331386) > [] 0.060000 0.000000 0.060000 ( 0.070595) > ----------------------------- total: 1.340000sec > > user system total real > << 0.940000 0.320000 1.260000 ( 1.302148) > [] 0.060000 0.010000 0.070000 ( 0.070150) Note that I tried to add this to your test : t.report("=") do 10000.times do a = Array.new(100) 100.times do |x| a[x] = x end end end And... Rehearsal -------------------------------------- << 0.304688 0.007812 0.312500 ( 0.313559) = 0.304688 0.000000 0.304688 ( 0.306314) [] 0.031250 0.000000 0.031250 ( 0.027802) ----------------------------- total: 0.648438sec user system total real << 0.304688 0.000000 0.304688 ( 0.309506) = 0.296875 0.000000 0.296875 ( 0.299347) [] 0.023438 0.007812 0.031250 ( 0.028271) Surprising ! (ruby 1.8.6 (2007-09-24 patchlevel 111) [amd64-freebsd7]) Fred -- The Admins are the priesthood of an irrational, anarchistic, random, pseudo-religious hardware platform, trying to impose their will on people who would rather be using us to avoid real work. (Joe Moore in the SDM)