Data Selector Performance (v29)

Revision 29 of this benchmark created on


Preparation HTML

<ul id="test" class="hi" data-attribute="attribute">
</ul>

Test runner

Ready to run.

Testing in
TestOps/sec
dataSelector
var a = document.querySelectorAll('[data-attribute]');
if(!a.length|| a.length == 0) throw "oops";
ready
classSelector
document.querySelectorAll('.hi')
ready
two classes
document.querySelectorAll('.hi')
ready

Revisions

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