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_str.rb
blob
8582b38e319fe5d4383aafcc92b10a41c73a8990
1
h = {}.compare_by_identity
2
strs = ('a'..'z').to_a
3
strs.each { |s| h[s] = s }
4
200_000.times { strs.each { |s| h[s] } }