querySelectorAll

JavaScript performance comparison

Revision 8 of this test case created by

Preparation code

<div class="wrap">
    <div class="a"></div>
    <div class="b"></div>
    <div class="b"></div>
    <div class="c"></div>
</div>
    

Preparation code output

<div class="wrap"> <div class="a"></div> <div class="b"></div> <div class="b"></div> <div class="c"></div> </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
div.wrap div.b
var els = document.querySelectorAll('div.wrap div.b');
pending…
.wrap div.b
var els = document.querySelectorAll('.wrap div.b');
pending…
.wrap .b
var els = document.querySelectorAll('.wrap .b');
pending…
div.b
var els = document.querySelectorAll('div.b');
pending…
.b
var els = document.querySelectorAll('.b');
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