Closed Bug 1943848 Opened 1 year ago Closed 1 year ago

Testcase generating 150K custome elements (with Shadow DOM)

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Open attached testcase
Enter 5000. Click generate

Nightly: https://share.firefox.dev/4hy2WPp (45s)
Chrome: https://share.firefox.dev/42vkfMN (10s)

I suspect that the large time in Nightly is all in reflow for this testcase, and not necessarily generating custom elements.

Testcase was generated using chatpgpt.

That's just because we're extending <video> and <audio>, would be better to ignore those because of bug 1943629. With those removed it's probably better

Same testcase as above, without audio and video.

150000 elements
Nightly: https://share.firefox.dev/4jy227t (16s)
Chrome: Couldnt capture profile

Reload: https://share.firefox.dev/40LYgjz
Delete elements: https://share.firefox.dev/42tu8dS

Summary: Testcase generating 150K custome elements (with Shadow DOM) is 4.5x slower in Nightly → Testcase generating 150K custome elements (with Shadow DOM)

For the second testcase:
N=300000
Firefox: https://share.firefox.dev/44BvD9E (7s in DOM, 5s in Style, rest in layout)
Chrome: https://share.firefox.dev/44pHVBI

this bug focusses on DOM and maybe style perf. I think we are much better than Chrome here.
Closing this as WFM.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
Blocks: 1980560
See Also: 1943230
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: