In taking a look at the performance metrics regarding the new jQuery release. it was curious to note that while jQuery is much faster than before, that on average, according to their performance tests, that Dojo 0.9 beta is faster than jQuery. The averages across all browsers listed are as follows:

  • Prototype: 870.5 ms
  • jQuery: 507.25 ms
  • Mootools: 647 ms
  • Ext: 584 ms
  • Dojo: 481.25 ms

Given that Dojo is rarely praised for its speed or performance, this is great news. Not that these numbers won’t fluctuate over time due to the very healthy competition going on currently.

In comparing Dojo 0.9 for a testcase of instantiating 100 button widgets from markup, our time drops from 9400 ms to 390 ms on IE 6 as a direct result of switching to dojo.query. In keeping some consistency with the way John Resig is measuring percentage performance increases, widget instantiation from markup is now 2400% faster on IE 6 with Dojo 0.9 compared to 0.4!

Leave a Reply