for semicolons while true

JavaScript performance comparison

Test case created by Josh

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
for
var i = 0; for (;;) { i += 1; if (i > 10) { break; } }
pending…
while
var i = 0; while (true) { i+= 1; if (i > 10) { break; } }
pending…

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

Compare results of other browsers

0 comments

Add a comment