jQuery element creation (v14)

Revision 14 of this benchmark created 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 class="test"></div>');
ready
Without trailing slash
$(document.createElement('div')).addClass("test");
ready
3
$('<div>').addClass("test");
ready

Revisions

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