jQuery VS Zepto VS Angular jqLite (v188)

Revision 188 of this benchmark created on


Description

This is an edited test from http://jsperf.com/jqm3/68 by levin, which is based on some other test.

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.9/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//zeptojs.com/zepto.min.js"></script>



<div id="container"></div>

Setup

var container = document.getElementById('container');
    var ul, li, i = 0;
    var msg = "Hello World ";

Teardown


    container.innerHTML = "";
  

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery
ul = jQuery("<ul>");
for (; i < 100; i++) {
  ul.append("<li>" + msg + "jQuery</li>");
}
jQuery(container).append(ul);
ready
Zepto
ul = Zepto("<ul>");
for (; i < 100; i++) {
  ul.append("<li>" + msg + "Zepto</li>");
}
Zepto(container).append(ul);
ready
Angular jqLite
ul = angular.element("<ul>");
for (; i < 100; i++) {
  ul.append(angular.element("<li>" + msg + "Angular</li>"));
}
angular.element(container).append(ul);
ready

Revisions

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