jQuery 1.4.2 vs 1.10.2 comparisons

JavaScript performance comparison

Revision 35 of this test case created by littledu

Preparation code

<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.2.min.js"></script>
var $142 = jQuery.noConflict();

<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.2.min.js"></script>
var $102 = jQuery.noConflict();

<div class="wrapper">
     <div class="innerWrapper">
          <div class="button">
               <a href="" id="button" class="buttonRef">
                    <span class="buttonText">Text</span>
  var context42 = $142("div.wrapper");
  var context102 = $102("div.wrapper");

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
Get - Class 1.4.2
var item = $142(".buttonRef");
Get - Class 1.10.2
var item = $102(".buttonRef");

Compare results of other browsers


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:


Comment form temporarily disabled.

Add a comment