[racket] interactive.rkt
Matthew Flatt wrote at 10/14/2010 07:53 AM:
> A third `(collect-garbage)' offers diminishing returns, but it might do something and it doesn't particularly hurt.
Question... For performance testing, I often code something like this:
1. Try to collect all the garbage I can.
2. Start the clock.
3. Run N iterations of the code in question.
4. Check the clock.
5. Do a final garbage collection to make sure I feel any remaining pain
from garbage I've generated.
6. Check the clock again.
For steps #1 and #5, is calling "collect-garbage" three times the best I
can do?
--
http://www.neilvandyke.org/