Zepto vs. jQuery Mobile vs. jQmobi (v136)

Revision 136 of this benchmark created on


Preparation HTML

<script src="http://zeptojs.com/zepto.min.js">
</script>
<script src="http://cdn.app-framework-software.intel.com/1.2/jq.mobi.min.js">
</script>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
<script src="http://jsrun.it/damele0n/tuMO/js">
</script>
<script src="http://jsrun.it/damele0n/tQkX/js"></script>

<div id="asdf">
</div>

Setup

function el(string) {
    if (string.indexOf('#') === 0) {
      return document.getElementById(string.substr(1, string.length));
    }
  }
  
  //to be fair, I'll wrap getElementById in a function and return the object
  
  function byId(id) {
    return document.getElementById(id);
  }
  
  var boolean = true;

Test runner

Ready to run.

Testing in
TestOps/sec
Zepto
Zepto('#asdf')
ready
jQuery Mobile
jQuery('#asdf')
ready
jQMobi
jq('#asdf')
ready

Revisions

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