Closed Bug 2086057 Opened 28 days ago Closed 25 days ago

285.61 - 6.01% pdfpaint issue14982.pdf + 319 more (Linux, OSX, Windows) regression on Fri October 23 2026

Categories

(Firefox :: PDF Viewer, defect, P1)

defect

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox-esr153 --- unaffected
firefox159 --- unaffected
firefox160 --- unaffected
firefox161 --- fixed

People

(Reporter: performance-sheriff-bot, Assigned: calixte)

References

(Regression)

Details

(4 keywords)

Attachments

(2 external files)

Perfherder has detected a talos performance regression from push 1c35f98b8f1c99b95575290cc0ce00276026baef. As author of one of the patches included in that push, we need your help to address this regression.

Please acknowledge, and begin investigating this alert within 3 business days, or the patch(es) may be backed out in accordance with our regression policy.

Regression Test Platform Options Absolute values [old vs new]
286% pdfpaint issue14982.pdf (doc) linux2404-64-shippable e10s fission stylo webrender 381.43 ms -> 1,470.85 ms
41% pdfpaint issue8823.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender-sw 126.98 ms -> 178.84 ms
41% pdfpaint issue9252.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender-sw 126.03 ms -> 177.08 ms
40% pdfpaint issue6541.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender-sw 126.35 ms -> 177.10 ms
40% pdfpaint issue9105_other.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender-sw 126.92 ms -> 177.82 ms
40% pdfpaint issue8798r.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender-sw 127.05 ms -> 177.76 ms
40% pdfpaint issue16287.pdf (doc) linux2404-64-shippable e10s fission stylo webrender 241.08 ms -> 336.31 ms
39% pdfpaint gradientfill.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender 125.26 ms -> 174.49 ms
39% pdfpaint issue11124.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender 122.97 ms -> 171.00 ms
39% pdfpaint filled-background.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender 126.93 ms -> 176.26 ms
... ... ... ... ...
6% pdfpaint SFAA_Japanese.pdf (doc) macosx1500-aarch64-shippable e10s fission stylo webrender 131.43 ms -> 139.40 ms
6% pdfpaint issue9650.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender-sw 440.53 ms -> 467.19 ms
6% pdfpaint issue840.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender-sw 276.20 ms -> 292.90 ms
6% pdfpaint issue15719.pdf (doc) linux2404-64-shippable e10s fission stylo webrender 287.43 ms -> 304.76 ms
6% pdfpaint pypdf2332.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender-sw 211.32 ms -> 224.02 ms
Improvements Test Platform Options Absolute values [old vs new]
33% pdfpaint issue16263.pdf (doc) linux2404-64-shippable e10s fission stylo webrender 6,751.99 ms -> 4,540.44 ms
26% pdfpaint issue10717.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender 1,299.50 ms -> 957.77 ms
17% pdfpaint issue16454.pdf (doc) linux2404-64-shippable e10s fission stylo webrender 941.33 ms -> 781.82 ms
12% pdfpaint issue6165.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender-sw 434.89 ms -> 384.59 ms
10% pdfpaint issue11518.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender 1,285.70 ms -> 1,152.62 ms
... ... ... ... ...
9% pdfpaint ichiji.pdf (doc) windows11-64-24h2-shippable e10s fission stylo webrender 319.34 ms -> 291.70 ms

Support & Actionable Steps

For questions, please contact acseh@mozilla.com. You can also find help on Slack (#perf-help) or Matrix (#perftest).

Action guide details:

Flags: needinfo?(cdenizet)

Set release status flags based on info from the regressing bug 2085041

Assignee: nobody → cdenizet
Severity: -- → S3
Status: NEW → ASSIGNED
Flags: needinfo?(cdenizet)
Priority: -- → P1

(via GitHub webhook, authenticated as shared-secret)

There are two different things in this alert, both coming from the worker rendering enabled in bug 2085041.

2008 of the 2198 pdfpaint alerts in this summary and in the ones reassigned to it are a near-constant shift of the first page time, whatever the PDF:
about +37 ms on Windows, +9 to +12 ms on Linux and +2.5 ms on macOS, the same with and without webrender-sw.
The attached patch will fix that.

About the others, for now canvases in workers are software-only, while a canvas on the main thread is accelerated as long as both of its dimensions fit in gfx.canvas.accelerated.max-size (8192 px). The pages which were drawn on an accelerated canvas are now drawn in software.
For example issue14982.pdf on Linux went from 381 to 1470 ms, which is the time it already took with webrender-sw (1464 ms). Conversely, some heavy PDFs got faster (67 improvements, e.g. issue16263.pdf -33%).
This part will remain until canvases can be accelerated in workers: it's the cost of moving the rendering off the main thread.

(via GitHub webhook, authenticated as shared-secret)

Depends on: 2086332
No longer depends on: 2086332
Blocks: 2086103
Depends on: 2086866
No longer depends on: 2086866
Depends on: 2087181
Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
Depends on: 2087223
No longer depends on: 2087223

A comment containing a reason for why the performance regression was resolved as FIXED could not be found. It should provided when the status of the bug is changed.

:marco, since you resolved this bug, could you provide a comment explaining the resolution? If one has already been provided, this needinfo can be ignored/removed.

If you need additional information/help, reach out in #perftest, or #perfsheriffs on Element.

For more information, please visit BugBot documentation.

Flags: needinfo?(mcastelluccio)

Fixed by bug 2087181.

Flags: needinfo?(mcastelluccio)
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: