ruby/benchmark/fiber_locals.yml

9 строки
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