From: Ryan Davis Date: 2011-01-14T06:48:42+09:00 Subject: Re: Why {} is much faster than Hash.new ? On Jan 13, 2011, at 03:05 , Iņaki Baz Castillo wrote: > Benchmark.realtime { 1000000.times { @m = Hash.new } } > => 0.6552023887634277 > > Benchmark.realtime { 1000000.times { @m = {} } } > => 0.17668819427490234 % echo "{}" | parse_tree_show s(:hash) % echo "Hash.new" | parse_tree_show s(:call, s(:const, :Hash), :new, s(:arglist))