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 76e8fe8 commit bce6aa2Copy full SHA for bce6aa2
benchmarks.yml
@@ -139,6 +139,7 @@ attr_accessor:
139
desc: attr_accessor tests the performance of getting instance variable values via an attr_accessor imemo.
140
category: micro
141
single_file: true
142
+ ractor: true
143
keyword_args:
144
desc: keyword_args tests the performance of method calls with keyword arguments.
145
benchmarks/attr_accessor.rb
@@ -34,8 +34,9 @@ def get_value_loop
34
end
35
36
37
-obj = TheClass.new
+OBJ = TheClass.new
38
+Ractor.make_shareable(OBJ)
39
-run_benchmark(850) do
40
- obj.get_value_loop
+run_benchmark(10) do
41
+ OBJ.get_value_loop
42
0 commit comments