summaryrefslogtreecommitdiff
path: root/benchmark/vm1_attr_ivar_set.yml
blob: f383e59ef44284b285340edc3583b2fc69b69952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
prelude: |
  class C
    attr_accessor :a, :b
    def initialize
      @a = nil
      @b = nil
    end
  end
  obj = C.new
benchmark:
  vm1_attr_ivar_set: |
    obj.a = 1
    obj.b = 2
loop_count: 30000000