stop tests start tests

SlickSpeed

speed/validity selectors test for frameworks.

Every framework runs in his own IFRAME, thus no conflicts can happen. Tests are run selector by selector, with an interval to prevent the browser from freezing.

Tests are run in a neutral environment against a local copy of this document, no library or framework is included in the main JavaScript test, to avoid favoritism.

Choose the number of iterations below that each selector will be executed. Since timing in JavaScript is limited to milliseconds, choosing a higher iteration count on faster computers (with ms near 0) gives a more reliable result. The ms displayed is for each execution, total time divided by iteration count.

selectors Nativebase2 1.0beta2Dojo 1.2.3Ext 2.2JQuery 1.3.1LlamaLab 0.6MooTools 1.2.1Peppy 0.1.2Prototype 1.6.0.3Sly
div
div p
div > p
div + p
div ~ p
div p a
div, p, a
h1,h2,h3
.note
div.example
ul .tocline2
div.example, div.note
ul.toc li.tocline2
ul.toc > li.tocline2
.url.fn
#title
h1#title
div #title
a[href][class]
div[class]
div[class=example]
div[class^="exa"]
DIV[class$=mple]
div[class~=mple]
div[class~=example]
div[class^=exa][class$=mple]
a[lang|=tr]
*:lang(tr)
div:not(.example)
*:not(div)
p:not(:nth-child(5))
*:empty
a:link
p:only-child
p:last-child
p:first-child
P:nth-child(even)
p:nth-child(2n+2)
p:nth-child(odd)
p:nth-child(2n+1)
p:nth-child(10n-1)
p:nth-child(10n+9)
p:nth-child(1n+0)
p:nth-child(n)
p:nth-child(-n+6)
p:nth-child(0n+1)
p:nth-child(1)
div + p:nth-last-child(2n)
p:nth-last-child(-n+2)
p:nth-last-child(even)
p:only-of-type
p:last-of-type
p:first-of-type
p:nth-of-type(even)
p:nth-last-of-type(odd)
p:nth-last-of-type(-n+2)
final time (less is better) 0000000000

Legend

the faster the slower exception thrown or zero elements found different returned elements