selector-performance-and-stuff

Benchmark created by William Barbosa on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div class="asd">
<div class="qwe">
<div class="asd">
<div class="qwe">
</div>
</div>
</div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery
$('.asd')
ready
querySelectorAll
document.querySelectorAll('.asd')
ready
querySelectorAll Array
Array.apply(null, document.querySelectorAll('.asd'))
ready

Revisions

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

  • Revision 1: published by William Barbosa on