October 16, 2006
Benchmark: Prototype and jQuery
Christian Decker wrote this in the wee hours:
Claudio Cicali thought it might be fun to test wether the common prejudices against jQuery / for prototype hold:
The white/green representation may be a bit misleading, on some domains jQuery leases prototype far behind while in others the difference isn’t that big.
Also interesting posts:- Prototype CSS Selector is good
- jQuery CSS Selector is evil
and ran them with both Libraries and tada, he got some interesting results:
- select elements by a type selector (html element). Element selected (1000 times)
- select elements by a type selector (html element). No element selected (1000 times)
- select elements by a simple class selector. The class name does not exist (5000 times)
- select elements by a simple class selector. The class name does exist (5000 times)
- select elements by a simple id selector. The id does not exist (5000 times)
- select elements by a simple id selector. The id does exist (5000 times)
- select elements by a descendant selector (no elements selected) (1000 times)
- select elements by a descendant selector (20 elements selected) (1000 times)
- select 20 elements by a id selector and bind an event handler to each one (100 times)
- select 20 elements by a class selector and add an addictional class name to each one (1000 times)

- Framework Disagreement: JQuery: (Mis)leading the Pack
- Really easy field validation with Prototype
- Visual Form Feedback
- A Designer’s Guide to Prototyping Ajax
- Dojo 0.4 has been released
