jQ.Mobi (v56)

Revision 56 of this benchmark created on


Description

  • reverted to regular jquery.min
  • moved emptying the container HTML to 'teardown'
  • micro optimization; replaced i++ with i += 1

Someone please change jquery to jquery mobile. Revision 25 had an error.

Preparation HTML

<script src="//staging-ian.appmobi.com/game/zepto.min.js">
</script>
<script src="//staging-ian.appmobi.com/game/jq.mobi.min.js">
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="container">
</div>

Teardown


    document.getElementById("container").innerHTML = "";
  

Test runner

Ready to run.

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

Revisions

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