mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Optimize Hash methods with Kernel#hash (#10160)
This commit is contained in:
parent
6f31dd495c
commit
70de3b170b
2 changed files with 22 additions and 1 deletions
5
benchmark/hash_key.yml
Normal file
5
benchmark/hash_key.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
prelude: |
|
||||
obj = Object.new
|
||||
hash = { obj => true }
|
||||
benchmark: hash.key?(obj)
|
||||
loop_count: 30000000
|
Loading…
Add table
Add a link
Reference in a new issue