jQuery 1.9.1 vs. 2.0.0 beta 2

JavaScript performance comparison

Revision 49 of this test case created by xc

Preparation code

<script src="http://cdn.app-framework-software.intel.com/2.0/appframework.min.js">
</script>
<script src="//code.jquery.com/jquery-2.0.3.min.js">
</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
jQMobi ID Selector
jq("#idSelector");
pending…
2.0.0b ID Selector
$("#idSelector");
pending…
jQMobi Class Selector
jq(".classSelector");
pending…
2.0.0b Class Selector
$(".classSelector");
pending…
jQMobi Iteration
jq("#iteration li").each(function(i, e) {
  i++;
});
pending…
2.0.0b Iteration
$("#iteration li").each(function(i, e) {
  i++;
});
pending…
jQMobi CSS Getter
jq("#cssGetter").css("color");
pending…
2.0.0b CSS Getter
$("#cssGetter").css("color");
pending…
jqMobi CSS Setter
jq("#cssSetter").css("color", "red");
pending…
2.0.0 CSS Setter
$("#cssSetter").css("color", "red");
pending…
jqMobi Find
jq("#find").find("strong");
pending…
2.0.0b Find
$("#find").find("strong");
pending…
jqMobi Non-existent ID
jq("#someID");
pending…
2.0.0b Non-existent ID
$("#someID");
pending…
jqMobi Non-existent Class
jq(".someClass");
pending…
2.0.0b Non-existent Class
$(".someClass");
pending…
jqMobi Filter-next-prev
jq("#iteration li").filter(":first").next();
jq("#iteration li").filter(":last").prev();
pending…
2.0.0b Filter-next-prev
$("#iteration li").filter(":first").next();
$("#iteration li").filter(":last").prev();
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