aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/vm1_attr_ivar.yml
blob: a5b3b336e155adc83e663343b8657d1a8f23d007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
benchmark:
  vm1_attr_ivar: |
    class C
      attr_reader :a, :b
      def initialize
        @a = nil
        @b = nil
      end
    end
    obj = C.new
    i = 0
    while i<30_000_000 # while loop 1
      i += 1
      j = obj.a
      k = obj.b
    end
loop_count: 1