Dojo.vs.jQuery

Benchmark created by M.Ali.R on


Description

Compare dojo get element and jquery get element by id;

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.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

Revisions

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