zepto vs jquery - selectors (v99)

Revision 99 of this benchmark created by Andreas Danielsson on


Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.1.4/zepto.min.js"></script>


<div id="chapter_004" class="view">
    <div class="content"></div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
Zepto ID
Zepto('#chapter_004')
ready
jQuery ID
jQuery('#chapter_004')
ready
querySelector
document.querySelector('#chapter_004')
ready
querySelectorAll
document.querySelectorAll('#chapter_004')
ready
getElementById
document.getElementById('chapter_004')
ready
jQuery(getElementById)
jQuery(document.getElementById('chapter_004'))
ready
jQuery(function)
jQuery(id('chapter_004'))
ready
id
id('chapter_004')
ready

Revisions

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