Kimbo vs jQuery vs Zepto vs BSI select by id

JavaScript performance comparison

Revision 6 of this test case created by

Preparation code

<script src="https://code.jquery.com/jquery-git2.js">
</script>
<script src="http://kimbojs.com/lib/kimbo.js">
</script>
<script src="http://zeptojs.com/zepto.min.js">
</script>
<script src="http://bytes1.dyndns.org/BSI/website-app.js"></script>
<div id="header">
  <h1>
    Test
  </h1>
  <nav>
    <ul class="menu">
      <li class="button">
        One
      </li>
      <li class="button">
        Two
      </li>
      <li class="button">
        Three
      </li>
    </ul>
  </nav>
</div>
<div id="container">
  <h2>
    Test 2
  </h2>
  <p>
    Lorem
  </p>
  <ul id="list" class="menu">
    <li>
      Item 1
    </li>
    <li>
      Item 2
    </li>
    <li>
      Item 3
    </li>
  </ul>
  <form>
    <input name="name" placeholder="name" />
  </form>
</div>
<div id="footer">
  <p>
    Footer
  </p>
</div>
<script>
  window.$k = Kimbo;
  window.$j = jQuery;
  window.$z = Zepto;
  window.$b = BSI.id;
</script>
    

Preparation code output

<script src="http://kimbojs.com/lib/kimbo.js"> </script> <script src="http://zeptojs.com/zepto.min.js"> </script> <script src="http://bytes1.dyndns.org/BSI/website-app.js"></script> <div id="header"> <h1> Test </h1> <nav> <ul class="menu"> <li class="button"> One </li> <li class="button"> Two </li> <li class="button"> Three </li> </ul> </nav> </div> <div id="container"> <h2> Test 2 </h2> <p> Lorem </p> <ul id="list" class="menu"> <li> Item 1 </li> <li> Item 2 </li> <li> Item 3 </li> </ul> <form> <input name="name" placeholder="name" /> </form> </div> <div id="footer"> <p> Footer </p> </div> <script> window.$k = Kimbo; window.$j = jQuery; window.$z = Zepto; window.$b = BSI.id; </script>

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
Kimbo(id)
$k('#header');
pending…
jQuery(id)
$j('#header');
pending…
Zepto(id)
$z('#header');
pending…
BSI.id(id)
$b('header');
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

Test 2

Lorem