jQuery 2.0b VS jQ.Mobi VS zepto VS ten.js (v149)

Revision 149 of this benchmark created on


Preparation HTML

<script src="https://zeptojs.com/zepto.min.js"></script>
<script src="https://cdn.app-framework-software.intel.com/2.0/appframework.min.js"></script>
<script src="https://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="https://rawgithub.com/kvonflotow/ten.js/master/ten.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.3/angular.min.js"></script>

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

Setup

var ul, li, i = 0;

Teardown



            container.innerHTML = "";
        
  

Test runner

Ready to run.

Testing in
TestOps/sec
jQ.Mobi(AppFW)
ul = jq("<ul/>");
for (; i < 100; i += 1) {
  li = jq("<li>hello world jq.Mobi</li>");
  ul.append(li);
}
af('#container').append(ul);
ready
jQuery
ul = jQuery("<ul/>");
for (; i < 100; i += 1) {
  li = jQuery("<li>hello world jQuery</li>");
  ul.append(li);
}
jQuery('#container').append(ul);
ready
ten.js
ul = ten("<ul/>");
for (; i < 100; i += 1) {
  li = ten("<li>hello world ten.js</li>");
  ul.append(li);
}
ten('#container').append(ul);
ready
Zepto
ul = Zepto("<ul/>");
for (; i < 100; i += 1) {
  li = Zepto("<li>hello world Zepto</li>");
  Zepto(ul).append(li);
}
Zepto('#container').append(ul);
ready
Angular jqLite
ul = angular.element("<ul/>");
for (; i < 100; i += 1) {
  li = angular.element("<li>hello world jQuery</li>");
  ul.append(li);
}
angular.element('#container').append(ul);
ready
Vanilla
ul = document.createElement('ul');
for (; i < 100; i += 1) {
  li = document.createElement('li');
  li.innerText = "hello world Zepto";
  ul.appendChild(li);
}
document.getElementById('container').appendChild(ul);
ready

Revisions

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