Test jQuery vs minified vs native (v13)

Revision 13 of this benchmark created on


Preparation HTML

<div id="one" class="zzz">
<ul>
<li id="two">one</li>
<li id="three">two</li>
<li id="four">three</li>
<li id="five">four</li>
<li id="six">five</li>
<li id="seven">six</li>
<li id="eight">seven</li>
<li id="nine">eight</li>
<li id="ten">nine</li>
</ul>
<div class="xxx"></div>
</div>


<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
jQuery.noConflict();
</script>

<script src="//minifiedjs.com/download/minified-web.js"></script>
<script>
var MINI = require('minified');
var minified = MINI.$;
</script>

<script src="http://zeptojs.com/zepto.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Get element from jquery
jQuery('.zzz .xxx').text()
ready
Get minified js element
minified('.zzz .xxx').text();
ready
Get element from Zepto
Zepto('.zzz .xxx').text()
ready

Revisions

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