summaryrefslogtreecommitdiff
path: root/benchmark/vm_gc_short_with_long.yml
blob: 03ba0f95a9678060a2de45dafddb6f290f3142b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
prelude: |
  long_lived = Array.new(1_000_000){|i| "#{i}"}
  GC.start
  GC.start
benchmark:
  vm_gc_short_with_long: |
    a = '' # short-lived String
    b = ''
    c = ''
    d = ''
    e = ''
    f = ''
loop_count: 30000000