jQuery 1.8.3 vs. jQuery 1.10.1 (v46)

Revision 46 of this benchmark created by hite on


Description

jQuery 1.8.3 vs. jQuery 1.10.1

Preparation HTML

<script src="http://code.jquery.com/jquery-1.8.3.min.js">
</script>
<script>
  var jQ1 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-1.10.1.min.js">
</script>
<script>
  var jQ2 = jQuery.noConflict();
</script>
<div id="idSelector">
</div>
<div class="classSelector">
</div>
<ul id="iteration">
  <li>
  </li>
  <li>
  </li>
  <li>
  </li>
  <li>
  </li>
  <li>
  </li>
  <li>
  </li>
  <li>
  </li>
</ul>
<div id="cssGetter" style="color: black;">
</div>
<div id="cssSetter" style="color: black;">
</div>
<div id="find">
  <span>
  </span>
  <div>
    <strong>
    </strong>
  </div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
v1 ID Selector
jQ1("#idSelector");
ready
v2 ID Selector
jQ2("#idSelector");
ready
v1 Class Selector
jQ1(".classSelector");
ready
v2 Class Selector
jQ2(".classSelector");
ready
v1 Iteration
jQ1("#iteration li").each(function(i, e) {

});
ready
v2 Iteration
jQ2("#iteration li").each(function(i, e) {

});
ready
v1 CSS Getter
jQ1("#cssGetter").css("color");
ready
v2 CSS Getter
jQ2("#cssGetter").css("color");
ready
v1 CSS Setter
jQ1("#cssSetter").css("color", "red");
ready
v2 CSS Setter
jQ2("#cssSetter").css("color", "red");
ready
v1 Find
jQ1("#find").find("strong");
ready
v2 Find
jQ2("#find").find("strong");
ready
v1 Find by parent
jQ1("strong",jQ1("#find"));
ready
v2 Find by parent
jQ2("strong",jQ2("#find"));//jQ2("strong","#find");
ready

Revisions

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