jq152 vs jq16 trigger

JavaScript performance comparison

Revision 3 of this test case created by and last updated

Preparation code

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

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

Preparation code output

<script> var $jq15 = jQuery.noConflict(); </script> <script src="http://code.jquery.com/jquery-1.6.js"></script> <script> var $jq16 = jQuery.noConflict(); </script> <div> <p>Test document -- <em>very short</em>!</p> <ul> <li>First item</li> <li>Second Item</li> </ul> </div> <script> var $elem15 = $jq15("li"); var $elem16 = $jq16("li"); </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
jQuery 1.5.2
$elem15.data("setme", 42);
var t = $elem15.data("getme");
t = $elem15.data("setme");
pending…
jQuery 1.6pre
$elem16.data("setme", 42);
var t = $elem16.data("getme");
t = $elem16.data("setme");
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.

1 Comment

reterter commented :

wqewqewqewq

Test document -- very short!