document createElement vs jquery html string (v3)

Revision 3 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
document.createElement()
$(document.createElement("div"))
ready
parsing html with closing tag
$("<div></div>")
ready
parsing html with self closing tag
$("<div />")
ready
open tag only
$("<div>")
ready
createElement
document.createElement('div');
ready

Revisions

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