[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / vm_attr_ivar_set.yml
bloba0d379b18a0d64e8132d6251b9e47406d08eed52
1 prelude: |
2   class C
3     attr_accessor :a, :b
4     def initialize
5       @a = nil
6       @b = nil
7     end
8   end
9   obj = C.new
10 benchmark:
11   vm_attr_ivar_set: |
12     obj.a = 1
13     obj.b = 2
14 loop_count: 30000000