We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 270ddce commit 68877f6Copy full SHA for 68877f6
bench/benchmark-interface/lib/benchmark-interface/benchmark-set.rb
@@ -14,7 +14,7 @@ class BenchmarkSet
14
def initialize
15
@benchmarks = []
16
@counter = 0
17
- @@current = self
+ Thread.current[:benchmark_interface_benchmark_set] = self
18
@iterations = 1
19
end
20
@@ -81,10 +81,8 @@ def benchmark(name)
81
benchmarks([name]).first
82
83
84
- @@current = nil
85
-
86
def self.current
87
- @@current
+ Thread.current[:benchmark_interface_benchmark_set]
88
89
90
0 commit comments