1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/vm_gc_short_with_long.yml

14 lines
227 B
YAML
Raw Normal View History

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