Zepto vs. jQ vs. raw JS Dom (v51)

Revision 51 of this benchmark created on


Description

Zepto vs. Jquery vs. raw JS for getting an element by id

Preparation HTML

<script src="//staging-ian.appmobi.com/game/zepto.min.js">
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script src="//duckbox.net/R.min.js">
</script>
<div id="asdf">
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
Jquery
$(function(){ $('#asdf') });
ready
Zepto
$(function(){ $('#asdf') });
ready
R
R(function(){ R('#asdf') });
ready

Revisions

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