jQuery 1.7.2 vs 1.9.1 (v42)

Revision 42 of this benchmark created on


Description

1.7.2 vs 1.9.1

Preparation HTML

<script src="http://code.jquery.com/jquery-1.7.2.min.js">
</script>
<script>
  var jQ17 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-1.9.1.min.js">
</script>
<script>
  var jQ19 = 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
1.7.2 ID Selector
jQ17("#idSelector");
ready
1.9.0 ID Selector
jQ19("#idSelector");
ready
1.7.2 Class Selector
jQ17(".classSelector");
ready
1.9.0 Class Selector
jQ19(".classSelector");
ready
1.7.2 Iteration
jQ17("#iteration li").each(function(i, e) {

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

});
ready
1.7.2 CSS Getter
jQ17("#cssGetter").css("color");
ready
1.9.0 CSS Getter
jQ19("#cssGetter").css("color");
ready
1.7.2 CSS Setter
jQ17("#cssSetter").css("color", "red");
ready
1.9.0 CSS Setter
jQ19("#cssSetter").css("color", "red");
ready
1.7.2 Find
jQ17("#find").find("strong");
ready
1.9.0 Find
jQ19("#find").find("strong");
ready
1.7.2 Non-existent ID
jQ17("#someID");
ready
1.9.0 Non-existent ID
jQ19("#someID");
ready
1.7.2 Non-existent Class
jQ17(".someClass");
ready
1.9.0 Non-existent Class
jQ19(".someClass");
ready

Revisions

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