repo.or.cz
/
ruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git]
/
benchmark
/
hash_ident_flo.rb
blob
0c7edfed3ebeeea2a234d6648474676242ff710a
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] } }