Oh yeah. thanks a lot for pointing that out, Aaron.
By the way, does anyone know which page the slickspeed test is run on
(http://mootools.net/slickspeed/) ? I can't find any of the actual
elements on the page itself.
It's funny, though, that from the looks of the window.selectors array
[1], they're using the same page I threw together back in December,
which in retrospect was probably a dumb choice on my part, because it
doesn't exactly represent a "typical" page on a corporate site or
blog or anything else really. I just grabbed a portion of
Shakespeare's As You Like It (an excerpt of Act I, Scene III, in case
anyone else out there is a literature buff. :) ) and marked it up
with HTML. Oh well, chalk it up to the folly of youth. I do think,
however, that someone should come up with a better test page for
these speed tests, especially if people are going to use them to
compare the various libraries and take the results so seriously.
[1]
window.selectors = ['*','div:only-child','div:contains
(CELIA)','div:nth-child(even)','div:nth-child(2n)','div:nth-child
(odd)','div:nth-child(2n+1)','div:nth-child(n)','div:last-
child','div:first-child','div > div','div + div','div ~
div','body','body div','div','div div','div div div','div, div,
div','div, a,
span','.dialog','div.dialog','div .dialog','div.character,
div.dialog','#speech5','div#speech5','div #speech5','div.scene
div.dialog','div#scene1 div.dialog div','#scene1 #speech1','div[%
class]','div[%class=dialog]','div[%class^=dia]','div[%class
$=log]','div[%class*=sce]','div[%class|=dialog]','div[%class!
=madeup]','div[%class~=dialog]']
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jun 12, 2007, at 7:09 PM, Aaron Heimlich wrote:
On 6/12/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
It has a link to a speed test I threw together, and also to Aaron's
enhancement.
Just so nobody's confused, Karl's link[1] and my Firebug-enhanced
speed test[2] both deal with jQuery 1.0, not 1.1. I have yet to
upgrade my Firebug-enhanced test to jQuery 1.1.
[1] http://www.learningjquery.com/2006/12/quick-tip-optimizing-dom-
traversal
[2] http://aheimlich.freepgs.com/tests/jquery/speed-test-firebug/
--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com