зеркало из https://github.com/github/ruby.git
15 строки
199 B
YAML
15 строки
199 B
YAML
|
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
|