jQuery vs createElement (v297)

Revision 297 of this benchmark created by Hugo on


Description

Benchmarks from answer on StackOverflow: http://stackoverflow.com/questions/268490/jquery-document-createelement-equivalent/268520 Testing Zepto 1.1.3 and jQuery 2.1.1.

Preparation HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.1.3/zepto.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>$.noConflict()</script>

Test runner

Ready to run.

Testing in
TestOps/sec
$('<div>') (jQuery)
jQuery('<div>')
ready
$('<div>') (Zepto)
$('<div>')
ready
document.createElement
jQuery(document.createElement('div'))
ready

Revisions

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