jQuery 1.8.3 vs. jQuery 1.11.0

JavaScript performance comparison

Revision 70 of this test case created

Info

jQuery 1.8.3 vs. jQuery 1.10.4

Preparation code

<script src="http://code.jquery.com/jquery-1.8.3.min.js">
</script>
<script type="text/javascript">
  var jQ1 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-1.10.4.min.js">
</script>
<script type="text/javascript">
  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>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

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

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

});
pending…
v1 CSS Getter
jQ1("#cssGetter").css("color");
pending…
v2 CSS Getter
jQ2("#cssGetter").css("color");
pending…
v1 CSS Setter
jQ1("#cssSetter").css("color", "red");
pending…
v2 CSS Setter
jQ2("#cssSetter").css("color", "red");
pending…
v1 Find
jQ1("#find").find("strong");
pending…
v2 Find
jQ2("#find").find("strong");
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment