zepto vs jquery - selectors (v78)

Revision 78 of this benchmark created on


Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.1.4/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>

Setup

function id(id) {
      return document.getElementById(id);
    }

Test runner

Ready to run.

Testing in
TestOps/sec
Zepto ID
Zepto('[data-view-title]')
ready
jQuery ID
jQuery('[data-view-title]')
ready
querySelector
document.querySelector('[data-view-title]')
ready
querySelectorAll
document.querySelectorAll('[data-view-title]')
ready

Revisions

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