jq152 vs jq16 trigger

JavaScript performance comparison

Revision 3 of this test case created by and last updated

Preparation code

<script src="https://code.jquery.com/jquery-1.5.2.js"></script>
<script> var $jq15 = jQuery.noConflict(); </script>
<script src="https://code.jquery.com/jquery-1.6.js"></script>
<script> var $jq16 = jQuery.noConflict(); </script>

 <p>Test document -- <em>very short</em>!</p>
   <li>First item</li>
   <li>Second Item</li>
  var $elem15 = $jq15("li");
  var $elem16 = $jq16("li");

Preparation code output

<div> <p>Test document -- <em>very short</em>!</p> <ul> <li>First item</li> <li>Second Item</li> </ul> </div>

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
jQuery 1.5.2
$elem15.data("setme", 42);
var t = $elem15.data("getme");
t = $elem15.data("setme");
jQuery 1.6pre
$elem16.data("setme", 42);
var t = $elem16.data("getme");
t = $elem16.data("setme");

Compare results of other browsers


You can edit these tests or add even more tests to this page by appending /edit to the URL.

1 Comment

reterter commented :


Test document -- very short!