I think to make this accurate you need to GC.disable before taking the first count and GC.enable after taking the second.