Open Bug 1945990 Opened 15 days ago Updated 14 days ago

(Spectre mitigation on local files) Testcase from Bug is 20% slower if run from a local machine compared to if run as a BMO attachment

Categories

(Core :: JavaScript Engine, task, P5)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

Open the attached testcase directly, enter "1000" and press on Compute
Download the attachment to your local machine, double click to open in Browser, enter "1000" and press on Compute

Run as attachment: https://share.firefox.dev/4gyfqFY (6.8s)
Run from local machine as a file: https://share.firefox.dev/4aOGAXN (8.3s, with some variable times).

Blocks: 1944837

Profile with "1200" size.

Local: https://share.firefox.dev/411QORz (20s)
Online: https://share.firefox.dev/40YLH4y (16s)

Taking a look at this in samply, I think it's because spectre mitigations are enabled in the local case. I see a bunch of conditional moves in the generated code for the slow case, and none in the fast case.

I don't think this is a high priority to change.

Priority: -- → P5
Depends on: spectre-jit
Summary: Testcase from Bug is 20% slower if run from a local machine compared to if run as a BMO attachment → (Spectre mitigation on local files) Testcase from Bug is 20% slower if run from a local machine compared to if run as a BMO attachment
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: