ruby/benchmark/hash_key.yml

6 строки
102 B
YAML

prelude: |
obj = Object.new
hash = { obj => true }
benchmark: hash.key?(obj)
loop_count: 30000000