for length checkkk

JavaScript performance comparison

Test case created by Anton

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
with length
var a = Array(1000).join(1).split('');
for (var i = 0; i < a.length; i += 1) {
  2 * 2;
}
pending…
without length
var a = Array(1000).join(1).split('');
for (var i = 0, l = a.length; i < l; i += 1) {
  2 * 2;
}
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