Dojo 1.10.3 vs. jQuery 2.1.3 vs. ExtJS 5.1.0 (v97)

Revision 97 of this benchmark created on


Description

Simple test to benchmark variable allocation on inner and outer items.

Preparation HTML

<script src="http://cdn.sencha.com/ext/gpl/5.1.0/build/ext-all.js"></script>

<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.10.3/dojo/dojo.js"></script>
<script>
require(['dojo/query!css3'], function(q) {
  dj = q;
});
</script>

<div class="section"><p>This is p</p><div class="age2">This is 2 age</div>This is a section</div>

Test runner

Ready to run.

Testing in
TestOps/sec
Dojo
var d1 = dj(".section");
ready
Dojo Inside
var d2 = dj(".section .age2");
ready
jQuery
var j1 = jQuery('.section');
ready
jQuery Inside
var j2 = jQuery('.section .age2');
ready
ExtJS
var e1 = Ext.getCmp('.section');
ready
ExtJS Inside
var e2 = Ext.getCmp('.section .age2');
ready

Revisions

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