mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
8 lines
137 B
YAML
8 lines
137 B
YAML
prelude: |
|
|
th = Thread.current
|
|
th[:key] = :val
|
|
benchmark:
|
|
key?: th.key?(:key)
|
|
[]: th[:key]
|
|
keys: th.keys
|
|
loop_count: 1_000_000
|