Zepto (latest) vs jQuery (latest) - 2013-08-08 (v5)

Revision 5 of this benchmark created by Charles Chan on


Description

Comparison of latest versions of Zepto and jQuery

Preparation HTML

<div id="container"></div>
<script src="//zeptojs.com/zepto.min.js"></script>
<script src="//code.jquery.com/jquery.min.js"></script>

Setup

var jQuery = window.jQuery,
        Zepto = window.Zepto;
    
    var container = document.getElementById('container');

Teardown


    container.innerHTML = "";
  

Test runner

Ready to run.

Testing in
TestOps/sec
Zepto
var ul = Zepto("<ul/>");
for (var i = 0; i < 100; i += 1) {
  var li = Zepto("<li>hello world</li>");
  ul.append(li);
}
Zepto(container).append(ul);
ready
jQuery
var ul = jQuery("<ul/>");
for (var i = 0; i < 100; i += 1) {
  var li = jQuery("<li>hello world</li>");
  ul.append(li);
}
jQuery(container).append(ul);
ready

Revisions

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