[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / hash_ident_flo.rb
blob0c7edfed3ebeeea2a234d6648474676242ff710a
1 h = {}.compare_by_identity
2 strs = (1..10000).to_a.map!(&:to_f)
3 strs.each { |s| h[s] = s }
4 50.times { strs.each { |s| h[s] } }