jq1.4.2-vs-jq1.7.1

JavaScript performance comparison

Revision 3 of this test case created by

Preparation code

<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js">
</script>
<script>
  var $171 = jQuery.noConflict();
</script>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.2.min.js">
</script>
<script>
  var $142 = 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 context71 = $171("div.wrapper");
  var context42 = $142("div.wrapper");
</script>
    

Preparation code output

<script> var $171 = jQuery.noConflict(); </script> <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.2.min.js"> </script> <script> var $142 = 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 context71 = $171("div.wrapper"); var context42 = $142("div.wrapper"); </script>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Get - Class 1.4.2
var item = $142(".buttonRef");
pending…
Get class1.7.1
var item = $171(".buttonRef");
pending…
Context-Class 1.4.2
var item = $142(".buttonRef", context42);
pending…
Context-Class 1.7.1
var item = $171(".buttonRef", context71);
pending…
Find-Class 1.4.2
var item = context42.find(".buttonRef")
pending…
Find-Class 1.7.1
var item = context71.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.

0 Comments