Related to comments on JSPerf, For Loop vs While Loop
Do you need to simulate the whole jsperf benchmark functionality inside SO question as code other than linking to jsperf entry?
If you think I am not posting code in my answer, checkout revision history
If https://stackoverflow.com/help/mcve have some suggestion about performance benchmarking question, it would be great.
for
loop snippet in your answer and explicitly state that they have the same performance. Without clicking the JSperf link, it is somewhat ambiguous when you said "same performance".