w-h-i-l-e-v-s-f-o-r

JavaScript performance comparison

Revision 2 of this test case created by Óscar

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
while
var b = [1, 2, 3, 4, 5, 6, 7, 8, 9];
var j = b.length;
while( j-- )
    b[j] *= 33;
pending…
for
var a = [1, 2, 3, 4, 5, 6, 7, 8, 9];
for( var i = 0; i < a.length; ++i )
    a[i] *= 33;
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment