I don't know how reliable it is, but I have a speed-tester for my code snippets. I'll run it a few times and tell you the results. You want me to post the tester too? Perhaps you can use it, or help me improve it.
EDIT: It reports no apreciable difference when either i = 50, j = 500 or when i = 500, j = 50, both take approx 0.64 seconds, with no difference in the output time at 15 dp.
Tester attached, set up with i=5000,j=50000. I know it says WHILE tester, but I can't be bothered to change it. If you want a while loop rather than a for loop, then either work it out, or ask here, athough to be honest, if you're worried about codespeed, then you probably are good enough to cope on your own. No offence meant.