Qwery vs Sizzle vs Minimal

JavaScript performance comparison

Revision 34 of this test case created on 18th November 2013

Info

Tests handling the most basic selectors between qwery, sizzle, and minimal. Qwery and sizzle are both wonderful, but minimal is for those who want to always use only the most performant selectors. It forces you to do this by limiting the kinds of selectors it will treat. For instance, descendants are not allowed (e.g. '#parent #child'), nor css3 selectors, which is significantly slower than id, tag, or class (that is where getElementsByClassName is supported). qwery and sizzle will prefer these fast methods, but will do more checks and function calls. The ambition behind minimal is to create the fastest selector engine possible, even if it can't do everything.