jQuery 1.8.2 vs. jQuery 1.9.1 vs. jQuery 2.0.0b2

JavaScript performance comparison

Revision 5 of this test case created

Preparation code

<script src="http://code.jquery.com/jquery-1.8.2.min.js">
</script>
<script type="text/javascript">
  var jQ18 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-1.9.1.min.js">
</script>
<script type="text/javascript">
  var jQ19 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-2.0.0.min.js">
</script>
<script type="text/javascript">
  var jQ20 = 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
1.8.2 ID Selector
jQ18("#idSelector");
pending…
1.9.1 ID Selector
jQ19("#idSelector");
pending…
2.0.0 ID Selector
jQ20("#idSelector");
pending…
regular
document.getElementById("idSelector");
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