jq152 vs jq16 trigger (v9)

Revision 9 of this benchmark created on


Preparation HTML

<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>
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script> var $jq18 = 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");
  var $elem18 = $jq18("li");
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery 1.5.2
$elem15.data("setme", 42);
var t = $elem15.data("getme");
t = $elem15.data("setme");
ready
jQuery 1.6pre
$elem16.data("setme", 42);
var t = $elem16.data("getme");
t = $elem16.data("setme");
ready
jQuery 1.8.2
$elem18.data("setme", 42);
var t = $elem18.data("getme");
t = $elem18.data("setme");
ready

Revisions

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