summaryrefslogtreecommitdiff
path: root/benchmark/vm_iclass_super.yml
blob: 21bb7db247daeb6bb014f6f2139cfe0ac8d20c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
prelude: |
  class C
    def m
      1
    end

    ("A".."M").each do |module_name|
      eval <<-EOM
          module #{module_name}
            def m; super; end
          end
          prepend #{module_name}
      EOM
    end
  end

  obj = C.new
benchmark:
  vm_iclass_super: obj.m
loop_count: 6000000