2018-07-08 12:28:34 -04:00
|
|
|
prelude: |
|
|
|
|
long_lived = Array.new(1_000_000){|i| "#{i}"}
|
|
|
|
GC.start
|
|
|
|
GC.start
|
2018-07-08 11:12:24 -04:00
|
|
|
benchmark:
|
|
|
|
vm1_gc_short_with_long: |
|
2018-07-08 12:28:34 -04:00
|
|
|
a = '' # short-lived String
|
|
|
|
b = ''
|
|
|
|
c = ''
|
|
|
|
d = ''
|
|
|
|
e = ''
|
|
|
|
f = ''
|
|
|
|
loop_count: 30000000
|