From: "Iñaki Baz Castillo" Date: 2011-01-13T20:05:39+09:00 Subject: Why {} is much faster than Hash.new ? Hi, a simple benchmark: Benchmark.realtime { 1000000.times { @m = Hash.new } } => 0.6552023887634277 Benchmark.realtime { 1000000.times { @m = {} } } => 0.17668819427490234 I would like to know why {} is so much faster. I can understand that Hash.initialize method must inspect is an argument is given and so, is just due to it? Thanks. -- Iñaki Baz Castillo