If you run that with the --expose_gc flag and comment on/off the gc() line, you'll see the RSS stays flat with the GC forcibly run after each iteration.