Optimize Hash methods with Kernel#hash (#10160)

This commit is contained in:
Takashi Kokubun 2024-03-01 11:16:31 -08:00 committed by GitHub
parent 6f31dd495c
commit 70de3b170b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 1 deletions

5
benchmark/hash_key.yml Normal file
View file

@ -0,0 +1,5 @@
prelude: |
obj = Object.new
hash = { obj => true }
benchmark: hash.key?(obj)
loop_count: 30000000