jQuery element creation (v3)

Revision 3 of this benchmark created by Mathias Bynens on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
With trailing slash
$('<div/>');
ready
Without trailing slash
$('<div>');
ready
Opening and closing tags
$('<div></div>');
ready
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.