jQuery 1.5.2 vs 1.8.3 (v43)

Revision 43 of this benchmark created on


Description

1.5.2 vs 1.8.3

Preparation HTML

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

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

});
ready
1.5.2 CSS Getter
jQ15("#cssGetter").css("color");
ready
1.8.3 CSS Getter
jQ18("#cssGetter").css("color");
ready
1.5.2 CSS Setter
jQ15("#cssSetter").css("color", "red");
ready
1.8.3 CSS Setter
jQ18("#cssSetter").css("color", "red");
ready
1.5.2 Find
jQ15("#find").find("strong");
ready
1.8.3 Find
jQ18("#find").find("strong");
ready
1.5.2 Non-existent ID
jQ15("#someID");
ready
1.8.3 Non-existent ID
jQ18("#someID");
ready
1.5.2 Non-existent Class
jQ15(".someClass");
ready
1.8.3 Non-existent Class
jQ18(".someClass");
ready

Revisions

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