Here an interesting site comparing the speed of 5 of the most known JS frameworks on the market:
http://mootools.net/slickspeed/
My results in several Browsers:
XP/Firefox:
Mootools: 157 ms
JQuery: 147 ms
Prototype: 215 ms
YUI: 342 ms
Dojo: 101 ms
XP/IE7:
Mootools: 416 ms
JQuery: 302 ms
Prototype: 1598 ms
YUI: 999 ms
Dojo: 503 ms
XP/Opera:
Mootools: 68 ms
JQuery: 64 ms
Prototype: 80 ms
YUI: 250 ms
Dojo: 28 ms
XP/Chrome:
Mootools: 68 ms
JQuery: 49 ms
Prototype: 291 ms
YUI: 215 ms
Dojo: 61 ms
The winner is: Dojo!!!
Is really fast in the major browsers (IE doesn’t count.. every javascript is slow on IE.. :\).
Great site that gave me a whole new view over the frameworks.
Did you test with various browsers/platforms?
For me jquery was the most consistent of them all. Dojo failed a few tests in Safari3/OSX.. And in IE7/XP jquery was the fastest.
Too bad we can’t update the various versions of the frameworks to give an even better view of the present state.
It also left me astonished to see the difference between the js engine in Chrome, Opera, Firefox, Safari and IE. IE7 is still by far (by some 10 times) worst than any other! :O
I Published my results on the post. In XP, dojo was the winner.
In my PC, The JS engine of IE7 was clearly the worst… By the other hand, Opera and Chrome achieved very good results with mootools, JQuery and Dojo.
Nuno, beware that this test only evaluates the speed of each library’s selector engine. Not the entire library…
Also, even though dojo is indeed the quickest, it threw 3x exceptions on firefox 3.1 b2, while the others, didn’t. That’s something you should take into account too…
But since these libs are very outdated, it shouldn’t really influence any of your decisions now. If you want to, download the code and update the libs. Post results when you’re done.
Probably someone has done this already…