for vs while loop

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
for
for (var i = 0; i < 100; i++) {
    console.log('test-one-'+i);
}
 
ready
while
var i = 100;
while(i--) {
    console.log('test-two-'+i);
}
ready

Revisions

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