ruby/benchmark/vm1_gc_short_with_long.yml

14 строки
228 B
YAML

prelude: |
long_lived = Array.new(1_000_000){|i| "#{i}"}
GC.start
GC.start
benchmark:
vm1_gc_short_with_long: |
a = '' # short-lived String
b = ''
c = ''
d = ''
e = ''
f = ''
loop_count: 30000000