qs vs jQuery (v14)

Revision 14 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="https://raw.github.com/gist/568b21bbea4349d59833/qs.js"></script>


<div></div>
<div id="foo"></div>
<div class="bar"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
getElementsBy
document.getElementsByTagName("div");
document.getElementById("foo");
document.getElementsByClassName("bar");
ready
querySelectorAll
document.querySelectorAll("div");
document.querySelectorAll("#foo");
document.querySelectorAll(".bar");
ready
jQuery
$("div");
$("#foo");
$(".bar");
ready
qs
qs("div");
qs("#foo");
qs(".bar");
ready

Revisions

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