[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / vm_ivar_lazy_set.yml
blob7372ffcfbcad56f7dfecf398371298ada9b13ef5
1 prelude: |
2   class Example
3     def lazy_set
4       @uninitialized ||= 123
5     end
6   end
8   objs = 10000000.times.map { Example.new }
9 benchmark:
10   vm_ivar_lazy_set: |
11     objs.each(&:lazy_set)
12 loop_count: 1