jq1.9.0-vs-jq1.8.3

JavaScript performance comparison

Revision 9 of this test case created

Info

test

Preparation code

<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.0.min.js">
</script>
<script type="text/javascript">
  var $190 = jQuery.noConflict();
</script>
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js">
</script>
<script type="text/javascript">
  var $183 = 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 context90 = $190("div.wrapper");
  var context83 = $183("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.9.0
var item = $190(".buttonRef");
pending…
Get - Class 1.8.3
var item = $183(".buttonRef");
pending…
Context-Class 1.9.0
var item = $190(".buttonRef", context90);
pending…
Context-Class 1.8.3
var item = $183(".buttonRef", context83);
pending…
Find-Class 1.9.0
var item = context90.find(".buttonRef")
pending…
Find-Class 1.8.3
var item = context83.find(".buttonRef")
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