zepto, jquery, native selectors (v127)

Revision 127 of this benchmark created by Ryan on


Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.1.6/zepto.min.js"></script>

<div id="foo">Foo</div>

Test runner

Ready to run.

Testing in
TestOps/sec
Zepto ID
Zepto('#foo')
ready
jQuery ID
jQuery('#foo')
ready
querySelector
document.querySelector('#foo')
ready
querySelectorAll
document.querySelectorAll('#foo')
ready
getElementById
document.getElementById('foo')
ready
jQuery(getElementById)
jQuery(document.getElementById('foo'))
ready

Revisions

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