zepto vs jquery

JavaScript performance comparison

Revision 74 of this test case created by

Preparation code

<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>
    

Preparation code output

<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

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Zepto - id
Zepto('#chapter_004');
pending…
jQuery - id
jQuery('#chapter_004');
pending…
Zepto - id + class
Zepto('#rsvp .content');
pending…
jQuery - id + class
jQuery('#rsvp .content');
pending…
Zepto - data
Zepto('#rsvp').data('title');
pending…
jQuery - data
jQuery('#rsvp').data('title');
pending…

Compare results of other browsers

Revisions

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

0 Comments