Skip to content
Prev 170253 / 398503 Next

System.time

On Thu, Feb 12, 2009 at 4:28 AM, Gavin Simpson <gavin.simpson at ucl.ac.uk> wrote:
I do the same, but with a small twist:

     system.time(replicate(1000, {svd(Mean_svd_data); 0} ))

This allows the values of svd(...) to be garbage collected.

If you don't do this and the output of the timed code is large, you
may allocate large amounts of memory (which may influence your timing
results) or run out of memory (which will also influence your timing
results :-) ),

              -s