jQuery element creation methods (v42)

Revision 42 of this benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
String with trailing slash
$('<div/>');
ready
String without trailing slash
$('<div>');
ready
String with opening and closing tags
$('<div></div>');
ready
Element created with document.createElement
$(document.createElement('div'));
ready

Revisions

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