Dojo.vs.jQuery (v8)

Revision 8 of this benchmark created on


Description

Compare dojo get element and jquery get element by id;

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript" src="http://myjs.fr/0.1.1/my.js"></script>
<div id='test'></div>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery
var test = $("#test");
ready
Dojo
var test = dojo.byId("test");
ready
MyJS
var test = my('test')
ready

Revisions

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