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 aacffb8 commit a6fb41cCopy full SHA for a6fb41c
benchmarks/setivar.rb
@@ -30,6 +30,13 @@ def set_value_loop
30
31
obj = TheClass.new
32
33
-run_benchmark(1000) do
34
- obj.set_value_loop
+if ENV["YJIT_BENCH_RACTOR_HARNESS"]
+ # same code as below, just pass obj as a ractor arg
35
+ run_benchmark(1000, ractor_args: [obj]) do |_, object|
36
+ object.set_value_loop
37
+ end
38
+else
39
+ run_benchmark(1000) do
40
+ obj.set_value_loop
41
42
end
0 commit comments