For VS while

Benchmark created on


Description

Which loop is faster? For or while?

Setup

var x=0,y=0;

Test runner

Ready to run.

Testing in
TestOps/sec
For
for(x=0;x<100000;x++){
y=1;	
}
ready
While
x=100000;
while(--x>=0){
y=1;	
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.