[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / vm_block_handler.yml
blob461d7953adf426b9e13097f8d2b24d04aa76dd65
1 # :FIXME: is there a way to benchmark block_handler_type_ifunc?
3 prelude: |
4   p = proc{_1}
5   o = Object.new
6   def o.each
7     i = 0
8     while i < 3_000_000 do
9       yield i
10       i += 1
11     end
12   end
14 benchmark:
15   - name: block_handler_type_iseq
16     script: |
17       o.each{_1}
19   - name: block_handler_type_symbol
20     script: |
21       o.each(&:itself)
23   - name: block_handler_type_proc
24     script: |
25       o.each(&p)
27 loop_count: 1