2018-07-08 12:28:34 -04:00
|
|
|
prelude: |
|
|
|
|
class C
|
|
|
|
attr_reader :a, :b
|
|
|
|
def initialize
|
|
|
|
@a = nil
|
|
|
|
@b = nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
obj = C.new
|
2018-07-08 11:12:24 -04:00
|
|
|
benchmark:
|
2020-04-14 00:37:42 -04:00
|
|
|
vm_attr_ivar: |
|
2018-07-08 12:28:34 -04:00
|
|
|
j = obj.a
|
|
|
|
k = obj.b
|
|
|
|
loop_count: 30000000
|