Open Bug 1962838 Opened 1 year ago Updated 8 months ago

Testcase embedding N js modules via blobs is 2.2x slower in Firefox compared to Chrome (N=500K)

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Assigned: allstars.chh)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

js modules in blobs

N=500000

js modules

N=500000

Attached file js modules.HTML
Severity: -- → N/A
Priority: -- → P3

The module refactoring in bug 1820594 needs to happen before we can work on optimizing module loading and should unlock some potential improvements.

Blocks: 1980560
See Also: 1943230

js modules in blob
500000 loopcount
Firefox: https://share.firefox.dev/4p03v8A (30 seconds)
Chrome: https://share.firefox.dev/3JTvmID (15 seconds)
Firefox gecko profiler (500000): https://share.firefox.dev/43n1Xgy

Bug 1820594 is fixed now. Can/should this bug be reassessed?

Flags: needinfo?(allstars.chh)
Assignee: nobody → allstars.chh
Flags: needinfo?(allstars.chh)

I'm seeing 16% of time in nsCSPContext::ReportInlineViolation and 7% of time in mozilla::dom::CollectScriptTelemetry locally.

The first is a bit strange. Is the test case working as expected?

I may have run the test as a BMO attachment, i dont remember. BMO has weird CSP restrictions.

Here is a profile where i run the testcase from a local HTTP server: https://share.firefox.dev/3WUGcRx

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: