jQuery element creation (v28)

Revision 28 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
jquery all in
$('<div id="blah" class="tclose">2000</div>');
ready
jquery steps
var g = $(document.createElement('div'));
g.text('2000');
g.addClass('tclose');
g.attr('id', 'blah');
ready
Opening and closing tags
 
ready
document.createElement
 
ready

Revisions

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