jQuery Simple Selector (v23)

Revision 23 of this benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>var jq144 = jQuery.noConflict();</script>
<script src="https://code.jquery.com/jquery-git.js?gfafs"></script>
<script>var jqLatest1 = jQuery.noConflict();</script>
<script src="https://code.jquery.com/jquery-git2.js?gdsg"></script>
<script>var jqLatest2 = jQuery.noConflict();</script>
<div class="test" id="test">
<script>
var html = "";
for ( var i = 0; i < 500; i++ ) {
  html += '<div class="find"></div>';
}
document.write( html );
</script>
</div>
<script>
  var $jq144 = jq144("body");
  var $jqLatest1 = jqLatest1("body");
  var $jqLatest2 = jqLatest2("body");
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Class 1.4.4
$jq144.find(".find");
ready
Class jqLatest1
$jqLatest1.find(".find");
ready
Class jqLatest2
$jqLatest2.find(".find");
ready
Tag 1.4.4
$jq144.find("div");
ready
Tag jqLatest1
$jqLatest1.find("div");
ready
Tag jqLatest2
$jqLatest2.find("div");
ready
Document ID 1.4.4
jq144("#test")
ready
Document ID jqLatest1
jqLatest1("#test")
ready
Document ID jqLatest2
jqLatest2("#test")
ready
Body 1.4.4
jq144("body")
ready
Body jqLatest1
jqLatest1("body")
ready
Body jqLatest2
jqLatest2("body")
ready

Revisions

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