On Thu, Oct 22, 2009 at 02:47:36PM +0200, Henrik Johansen wrote:
It's also good to avoid computations other than the one you're testing in the inner loop, so a better test might be something like:
[1 to: 200 do: [:e | 1 to: 25185 do: [:t | Array new: e]]] timeToRun - [1 to: 200 do: [:e | 1 to: 25185 do: [:t | ]]] timeToRun. Then open a TimeProfileBrowser on the first block and subtract the GC- time listed there.
Thanks Henrik, I'll give that a try.
Dave