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_set.yml
Koichi Sasada a7776077be add vm_ivar_of_class_set
benchmark for a class's ivar setter
2021-10-23 01:32:55 +09:00

11 lines
192 B
YAML

prelude: |
class C
@a = 1
def self.a o
@a = o; @a = o; @a = o; @a = o; @a = o; @a = o;
end
end
benchmark:
vm_ivar_of_class_set: |
a = C.a(nil)
loop_count: 30000000