On 8/3/16, 10:33 PM, "bilbosax" <waspenc...@comcast.net> wrote: > >Strange thing though, the results are not very consistent. I can run the >program one time and get 2 min and 5 sec, close the program and open it >again and get 2 min and 30 seconds. What gives?
There are dozens of factors in the run time. The garbage collection is opportunistic (it doesn't run on a schedule) and even things like network and mouse events can affect when the GC will run. Plus, the CPUs are being shared with other apps on your system. Wait till you see the run time change when your virus scanner starts up. When I run performance tests, I try to run 5 runs or more and look for convergence. HTH, -Alex