Nodelist while

JavaScript performance comparison

Test case created

Preparation code

<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
POP
var values= [].slice.call(document.getElementsByTagName('article'), 1), x;
while (x = values.pop()) {}
var values=null;
pending…
Nomral
var values = document.getElementsByTagName('article'),i = values.length;
while (--i >= 0) {}
values = null;
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