1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/fiber_locals.yml
2020-01-11 14:40:36 +13:00

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