Gerardo Tasistro wrote:I've ended up doing a simple test on how long it takes Java to do 20 million iterations on a for loop. Simple code:
He's the thing. If I contain this loop inside another loop (say 10 iterations) the following happens.
In Linux the time it takes to do the 20M loop starts at say 25 milliseconds. Then drops to 0 ms after the third or fourth iteration.
Doing the same test on Windows all loops seem to take about the same time (25-30 ms) all the way through the 10 iterations.
Why does the time drop on Linux to practically 0 and not on Windows?
steve souza wrote:Make sure both are running in the same mode say client or server. I would run such a test in server mode.