For While (v12)

Revision 12 of this benchmark created on


Setup

var t = 1000000000,
        i = 0
        ii=-1;

Test runner

Ready to run.

Testing in
TestOps/sec
Lame For
for(var j = 0; j < t; j++){}
ready
Usual For
for(i = 0; i < t; i++){}
ready
Tweaked For
for(; i < t; i++){}
ready
Tweaked While
while(++ii < t){}
ready
While --
while(t){t--}
ready
For --
for(; t; t--){}
ready
++fOR
for(var j = 0; j < t; ++j){}
ready
Tweaked While --
while(t--){}
ready
Tweaked For --
for(; t--; ){}
ready
Extra Tweaked For
for(; i < t; i+=1 ){}
ready

Revisions

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