jQ.Mobi

JavaScript performance comparison

Revision 30 of this test case created by Praneet Loke

Preparation code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<script src="https://staging-ian.appmobi.com/game/jq.mobi.min.js"></script>
<script src="https://staging-ian.appmobi.com/game/zepto.min.js"></script>
<div id="container"></div>
    

Preparation code output

<script src="https://staging-ian.appmobi.com/game/jq.mobi.min.js"></script> <script src="https://staging-ian.appmobi.com/game/zepto.min.js"></script> <div id="container"></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
jQ.Mobi
$ = jq;
  var con = jq("#container");
  con.html("");
  var ul = jq("<ul/>");
  var i;
  for (i = 0; i < 100; i++) {
    var li = jq("<li>hello world jq.Mobi</li>");
    ul.append(li);
  }
  con.append(ul);
pending…
jQuery

  var con = jQuery("#container");
  con.html("");
  var ul = jQuery("<ul/>");
  var i;
  for (i = 0; i < 100; i++) {
    var li =jQuery("<li>hello world jQuery</li>");
    ul.append(li);
  }
  con.append(ul);
pending…
Zepto

  var con = Zepto("#container");
  con.html("");
  var ul = Zepto("<ul/>");
  var i;
  for (i = 0; i < 100; i++) {
    var li =Zepto("<li>hello world Zepto</li>");
    ul.append(li);
  }
  con.append(ul);
pending…
Raw
  var con = document.getElementById("container");
  con.innerHTML = "";
  var ul = document.createElement("UL");
  var i;
  for (i = 0; i < 100; i++) {
    var li = document.createElement("LI");
    li.textContent = "hello world Raw";
    ul.appendChild(li);
  }
  con.appendChild(ul);
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