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_set_subclass.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
281 B
YAML
Raw Normal View History

prelude: |
class A
def set_ivars
@a = nil
@b = nil
@c = nil
@d = nil
@e = nil
end
end
class B < A; end
class C < A; end
b = B.new
c = C.new
benchmark:
2020-12-15 20:29:48 -05:00
vm_ivar_init_subclass: |
b.set_ivars
c.set_ivars
loop_count: 3000000