item

JavaScript performance comparison

Test case created by

Preparation code

<div>a</div>
<div>a</div>
<div>a</div>
<div>a</div>
<div>a</div>
<div>a</div>
<div>a</div>
<div>a</div>
<div>a</div>
<div>a</div>
    

Preparation code output

<div>a</div> <div>a</div> <div>a</div> <div>a</div> <div>a</div> <div>a</div> <div>a</div> <div>a</div> <div>a</div> <div>a</div>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
array
document.querySelectorAll('div')[0]
document.querySelectorAll('div')[1]
document.querySelectorAll('div')[2]
document.querySelectorAll('div')[3]
document.querySelectorAll('div')[4]
document.querySelectorAll('div')[5]
document.querySelectorAll('div')[6]
pending…
NodeList
document.querySelectorAll('div').item(0)
document.querySelectorAll('div').item(1)
document.querySelectorAll('div').item(2)
document.querySelectorAll('div').item(3)
document.querySelectorAll('div').item(4)
document.querySelectorAll('div').item(5)
document.querySelectorAll('div').item(6)
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.

0 Comments

a
a
a
a
a
a
a
a
a
a