jQuery vs createElement (v268)

Revision 268 of this benchmark created by Heavensrevenge on


Preparation HTML

<script src="//code.jquery.com/jquery-git2.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
.prop
$("<a>").prop({ "class": "settings", "href": "options.html", "title": "Options" })
ready
, 'list'
$("<a>", { "class": "settings", "href": "options.html", "title": "Options" })
ready
document.createElement .prop
$(document.createElement("a")).prop({ "class": "settings", "href": "options.html", "title": "Options" })
ready
string + $wrapped
$('<a class="settings" href="options.html" title="Options"></a>')
ready

Revisions

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