put-selector vs jquery.html (v7)

Revision 7 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//kzyp.dojotoolkit.org/packages/put-selector/put.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
put-selector simple element
var target = document.createElement("div"); // as same code for target for consistency
var newElement = put(target, "div.foo");
ready
jQuery.html insert
var target = document.createElement("div"); // as same code for target for consistency
var newElement = jQuery(target).html('<div class="foo"></div>')[0].firstChild;
 
ready

Revisions

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