zepto vs jquery - selectors (v66)

Revision 66 of this benchmark created by Van Nguyen on


Description

Using a more complex query for a real comparison

Preparation HTML

<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://zeptojs.com/zepto.min.js"></script>

<div id="rsvp" class="view" data-view-title="RSVPs">
    <div class="content"></div>
</div>
<div id="chapter_004" class="view" data-view-title="Splendid Corgi Consortium">
    <div class="content"></div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery
jQuery('#rsvp.view')
ready
Zepto
Zepto('#rsvp.view')
ready
querySelectorAll
document.querySelectorAll('#rsvp.view')
ready

Revisions

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