jQuery vs createElement (v274)

Revision 274 of this benchmark created 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.