jQuery 1.5.2 vs 1.7.2 comparisons

JavaScript performance comparison

Revision 14 of this test case created

Preparation code

<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js">
</script>
<script type="text/javascript">
  var $172 = jQuery.noConflict();
</script>
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.2.min.js">
</script>
<script type="text/javascript">
  var $152 = jQuery.noConflict();
</script>
<div class="wrapper">
  <div class="innerWrapper">
    <div class="button">
      <a href="" id="button" class="buttonRef">
      <span class="buttonText">Text</span>
      </a>
    </div>
  </div>
</div>
<script>
  var context72 = $172("div.wrapper");
  var context52 = $152("div.wrapper");
</script>

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.5.2
var item = $152(".buttonRef").val("111");
pending…
Find - Class 1.5.2
var item = context52.find(".buttonRef")
pending…
Find - Class 1.7.2
var item = context72.find(".buttonRef")
pending…
Get - Class 1.7.2
var item = $172(".buttonRef").val("111");
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