jQuery element creation (v41)

Revision 41 of this benchmark created on


Preparation HTML

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

Setup

var test = '<div class="test"></div>';

Test runner

Ready to run.

Testing in
TestOps/sec
With trailing slash
$("#test").append(test);
ready
Without trailing slash
$("#test").append('<div class="test"></div>');
ready
Opening and closing tags
 
ready

Revisions

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