summaryrefslogtreecommitdiff
path: root/benchmark/vm_ivar_generic_get.yml
blob: dae2d376716e6919dab845602ccd9ef7fd1978e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
prelude: |
  class C < Array
    attr_reader :a, :b, :c
    def initialize
      @a = nil
      @b = nil
      @c = nil
    end
  end

  c = C.new
benchmark:
  vm_ivar_generic_get: |
    c.a
    c.b
    c.c
loop_count: 30000000