[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / vm_gc_wb_obj.yml
bloba2a2ce2d1865012a360e85ea6db2671eb03a70e8
1 prelude: |
2   class C
3     attr_accessor :foo
4   end
5   short_lived_obj = C.new
7   if RUBY_VERSION >= "2.2.0"
8     GC.start(full_mark: false, immediate_mark: true, immediate_sweep: true)
9   end
11   short_lived = ''
12 benchmark:
13   vm_gc_wb_obj: |
14     short_lived_obj.foo = short_lived # write barrier
15 loop_count: 30000000