jQuery() vs. querySelectorAll()

Benchmark created by TJ VanToll on


Preparation HTML

<script src="https://code.jquery.com/jquery-2.0.3.min.js"></script>
<ul>
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
</ul>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery()
$( "li" );
ready
querySelectorAll()
document.querySelectorAll( "li" );
ready

Revisions

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

  • Revision 1: published by TJ VanToll on
  • Revision 2: published by Fabio77 on
  • Revision 3: published by Fabio on
  • Revision 4: published by Fabio77 on
  • Revision 5: published by Hemn Chawroka on
  • Revision 6: published on
  • Revision 7: published on
  • Revision 8: published by Jonathan Cousins on