Library fight: quojs, jquery and zepto (v15)

Revision 15 of this benchmark created by Nano on


Preparation HTML

<h1 id="my-id" class="my-class">Hello, this is just a test</h1>
<div class="my-div"><p>Hello, everyone, check this out: <a href="#">hello</a></p></div>

<script src="http://cdn.jsdelivr.net/jquery/2.0.3/jquery-2.0.3.min.js"></script>
<script src="http://cdn.jsdelivr.net/zepto/1.0rc1/zepto.min.js"></script>
<script src="http://cdn.jsdelivr.net/quojs/2.3.1/quo.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery ID selector
jQuery("#my-id")
ready
jQuery class selector
jQuery(".my-class")
ready
jQuery tag selector
jQuery("div")
ready
Zepto ID selector
Zepto("#my-id")
ready
Zepto class selector
Zepto(".my-class")
ready
Zepto tag selector
Zepto("div")
ready
QuoJS ID selector
Quo("#my-id")
ready
QuoJS class selector
Quo(".my-class")
ready
QuoJS tag selector
Quo("div")
ready
VanillaJS ID selector
document.getElementById('my-id')
ready
VanillaJS class selector
document.querySelector('.my-class')
ready
VanillaJS tag selector
document.getElementsByTagName('div')
ready

Revisions

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