From 40c57ad4a13898760b81a99dac181e5bf61afe47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lourens=20Naud=C3=A9?= Date: Sat, 4 Jan 2020 00:45:58 +0000 Subject: Let execution context local storage be an ID table --- benchmark/fiber_locals.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 benchmark/fiber_locals.yml (limited to 'benchmark') 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 -- cgit v1.2.3