[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / vm_poly_singleton.yml
blobc7923160fb4fdd269f5dc2f478c9957c8d39e5f2
1 # loop_count is not utilized since `i` is involved in the script
2 benchmark:
3   vm_poly_singleton: |
4     class C1
5       def m; 1; end
6     end
8     o1 = C1.new
9     o2 = C1.new
10     o2.singleton_class
12     i = 0
13     while i<6_000_000 # benchmark loop 2
14       o = (i % 2 == 0) ? o1 : o2
15       o.m; o.m; o.m; o.m; o.m; o.m; o.m; o.m
16       i += 1
17     end
18 loop_count: 1