On Feb 26, 11:22 am, John Resig <jere...@gmail.com> wrote: > Ok, fixed the perf regression. Here's the > commit:http://dev.jquery.com/changeset/6261 > > In Firefox 3.0.6 I'm now getting (on my local copy): > Query version used = 1.3.3pre > Total number of DIVs = 1000 > Paragraphs per DIV = 500 > > $("#div500 p") = 19ms > $("p", "#div500") = 2ms > $("#div500").find("p") = 1ms > $("#div500 > p") = 6ms > $("#div500").children("p"); = 19ms The benchmark is getElementById().getElementsByTagName() - why not inlcude that in the test? Add the following below test 3: // Test # 4 start = new Date(); $Test = document.getElementById('div' + myDiv).getElementsByTagName('p'); end = new Date(); a_Selectors.push('getEBI().getEBTName()'); a_Times.push(end - start); -- Rob
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) John Resig
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) Kevin Dalman
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) Josh Nathanson
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) ricardobeat
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) Kevin Dalman
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) John Resig
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) Kevin Dalman
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) John Resig
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) Kevin Dalman
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) John Resig
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) RobG
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) John Resig
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) Dor
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) RobG
- [jQuery] Re: $('#foo p') or $('p', $('#foo')) Kevin Dalman