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

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

15 lines
199 B
YAML
Raw Normal View History

prelude: |
class C
attr_reader :a, :b
def initialize
@a = nil
@b = nil
end
end
obj = C.new
benchmark:
vm_attr_ivar: |
j = obj.a
k = obj.b
loop_count: 30000000