blob: 4bd541e2ff19b3849790da41f629131e179d4750 (
plain)
1
2
3
4
5
6
7
8
|
benchmark:
hash_aref_miss: |
h = {}
strs = ('a'..'z').to_a.map!(&:freeze)
strs.each { |s| h[s] = s }
strs = ('A'..'Z').to_a
200_000.times { strs.each { |s| h[s] } }
loop_count: 1
|