[whatwg] Proposal: Adding methods like getElementById and getElementsByTagName to DocumentFragments
Boris Zbarsky
bzbarsky at MIT.EDU
Sat Oct 19 08:58:07 PDT 2013
On 10/18/13 5:56 PM, Boris Zbarsky wrote:
> I used a fairly large subtree that needs walking (1000
> elements)
Er, I _meant_ to, but the testcase clearly only has 100 elements.
The numbers with 1000 elements are:
Chrome:
document.getElementById: 50
In-tree querySelector: 210
In-tree querySelector, no string concat: 100
In-tree getElementById: 60
Out-of-tree querySelector: 23590
Out-of-tree querySelector, no string concat: 22870
Out-of-tree getElementById: 4450
Stock Firefox:
document.getElementById: 60
In-tree querySelector: 140
In-tree querySelector, no string concat: 130
In-tree getElementById: 190
Out-of-tree querySelector: 8590
Out-of-tree querySelector, no string concat: 8560
Out-of-tree getElementById: 8620
Modified Firefox:
document.getElementById: 60
In-tree querySelector: 130
In-tree querySelector, no string concat: 120
In-tree getElementById: 4270
Out-of-tree querySelector: 8320
Out-of-tree querySelector, no string concat: 8300
Out-of-tree getElementById: 4210
-Boris
More information about the whatwg
mailing list