diff options
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/fiber_locals.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/benchmark/fiber_locals.yml b/benchmark/fiber_locals.yml new file mode 100644 index 0000000000..8588686477 --- /dev/null +++ b/benchmark/fiber_locals.yml @@ -0,0 +1,8 @@ +prelude: | + th = Thread.current + th[:key] = :val +benchmark: + key?: th.key?(:key) + []: th[:key] + keys: th.keys +loop_count: 1_000_000 |