From: Ryan Davis Date: 2009-11-16T13:14:09+09:00 Subject: [ruby-core:26759] Re: (send #2) cgi.rb cleanup On Nov 15, 2009, at 20:02 , Bill Kelly wrote: > ruby 1.9.2dev (2009-10-27) [i386-mswin32_71] gah. I totally forgot to run mine under 1.9 as well. 75% dupe > % ~/.multiruby/install/1.9.1-p129/bin/ruby hash_time.rb 100000 > # of iterations = 100000 > user system total real > null_time 0.010000 0.000000 0.010000 ( 0.012237) > null_each 1.170000 0.000000 1.170000 ( 1.173098) > has_key? uniq 12.210000 0.030000 12.240000 ( 12.232168) > has_key? dups 9.340000 0.010000 9.350000 ( 9.350127) > h[k] = [] uniq 18.510000 0.050000 18.560000 ( 18.568463) > h[k] = [] dups 9.040000 0.020000 9.060000 ( 9.080876) 100% dupe > % ~/.multiruby/install/1.9.1-p129/bin/ruby hash_time.rb 100000 > # of iterations = 100000 > user system total real > null_time 0.010000 0.000000 0.010000 ( 0.012276) > null_each 1.180000 0.000000 1.180000 ( 1.182611) > has_key? uniq 12.340000 0.030000 12.370000 ( 12.391577) > has_key? dups 6.780000 0.050000 6.830000 ( 7.078568) > h[k] = [] uniq 18.440000 0.050000 18.490000 ( 18.495578) > h[k] = [] dups 4.600000 0.040000 4.640000 ( 4.646582)