jquery vs createElement (v53)

Revision 53 of this benchmark created by Oliver 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
var test = $('<span class="test-class" />');
ready
createElement
var test = $(document.createElement('span')).addClass('test-class');
ready
full native
var test = document.createElement('span');
test.classList.add('test-class');
ready

Revisions

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