1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/vm_ivar_of_class.yml
Koichi Sasada acb23454e5 allow to access ivars of classes/modules
if an ivar of a class/module refer to a shareable object, this ivar
can be read from non-main Ractors.
2021-10-23 01:32:55 +09:00

12 lines
229 B
YAML

prelude: |
class C
@a = 1
def self.a
_a = @a; _a = @a; _a = @a; _a = @a; _a = @a;
_a = @a; _a = @a; _a = @a; _a = @a; _a = @a;
end
end
benchmark:
vm_ivar_of_class: |
a = C.a
loop_count: 30000000