Closed Bug 2014110 Opened 10 months ago Closed 9 months ago

6.86 - 3.25% speedometer3 NewsSite-Nuxt/NavigateToWorld/Sync / speedometer3 NewsSite-Nuxt/NavigateToWorld/total + 2 more (Linux) regression on Fri January 30 2026

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox147 --- unaffected
firefox148 --- unaffected
firefox149 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: emilio)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: perf, perf-alert, regression)

Attachments

(1 external file)

Perfherder has detected a browsertime performance regression from push a182612732565736a6065f7d5bf153c52e501d50. 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] Performance Profiles
7% speedometer3 NewsSite-Nuxt/NavigateToWorld/Sync (doc) linux1804-64-shippable-qr fission webrender 28.66 ms -> 30.62 ms Before/After
6% speedometer3 NewsSite-Nuxt/NavigateToWorld/Sync (doc) linux1804-64-shippable-qr fission webrender 28.66 -> 30.35 Before/After
3% speedometer3 NewsSite-Nuxt/total (doc) linux1804-64-shippable-qr fission webrender 201.72 -> 208.46 Before/After
3% speedometer3 NewsSite-Nuxt/NavigateToWorld/total (doc) linux1804-64-shippable-qr fission webrender 63.30 ms -> 65.36 ms

Support & Actionable Steps

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

Action guide details:

Flags: needinfo?(emilio)

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

Huh, that's rather surprising. Digging.

Assignee: nobody → emilio

(the other ones are less likely to cause issues IMHO)

A bit odd this is linux only too...

So it seems the second patch (https://hg-edge.mozilla.org/integration/autoland/rev/d1c89233cc2fc27e3bad2047e578fe1bae7f9498) is what effectively changed the performance characteristics here, but I'm a bit confused as to why / how. I guess I did change the shorthand order (expansion of the all property), technically, but it shouldn't matter in practice, and it should only show up during serialization...

The other different things are:

  • fn parse_value used to be private for auto-generated shorthands and now isn't. I don't know if that might change inlining decisions? but that shouldn't matter that much in practice I don't think...
  • Stuff lives now in a generated and non-generated module, instead that all-in-one. But that also shouldn't matter, it's all in the same crate...

Looking at the profiles, I don't see anything interesting (very few samples in shorthand parsing and serialization), so I'm a bit at a loss here... Markus, is there any chance you could do a comparison report to try to narrow this down? Otherwise I guess I can try to manually bisect the properties...

Here's a try run with some other minor nits that I noticed but I doubt they would move the needle: https://perf.compare/compare-lando-results?baseLando=178324&newLando=178325&baseRepo=try&newRepo=try&framework=13

Flags: needinfo?(emilio) → needinfo?(mstange.moz)

My other wild guess was something to do with symbol names / something along those lines (since the new generated module has a longer name and so on), but that would be rather wild... Still weird that this is somehow platform-specific.

It has been over 7 days with no activity on this performance regression.

:emilio, since you are the author of the regressor, bug 2013141, which triggered this performance alert, could you please provide a progress update?

If this regression is something that fixes a bug, changes the baseline of the regression metrics, or otherwise will not be fixed, please consider closing it as WONTFIX. See this documentation for more information on how to handle regressions.

For additional information/help, please needinfo the performance sheriff who filed this alert (they can be found in comment #0), or reach out in #perftest, or #perfsheriffs on Element.

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Nothing there seems to have helped actually... Pushing a revert just to sanity-check that's the culprit again: https://perf.compare/compare-lando-results?baseLando=180129&newLando=180250&baseRepo=try&newRepo=try&framework=13

Ok so at least I'm not going mad, the revert doesn't help either. Looking at comment 3 more carefully, it seems the regression might've been on the first commit after all... That's maybe a bit less surprising, and gives me a bit more to look into...

Flags: needinfo?(mstange.moz)

https://perf.compare/compare-lando-results?baseLando=180132&newLando=180318&baseRepo=try&newRepo=try&framework=13 is something I noticed thanks to Denis' profiles on Matrix.

Other things that I see:

  • My patch technically changed the code generation order. But then follow-ups have shifted it again to the previous order and that didn't help.
  • It seems computed style diffing from transitions is taking most of the time. In the good build, AnimationValue::from_computed_values didn't seem to get inlined, and in the bad one does.

Denis mentioned that we might be restyling more often but afaict I don't see it locally (two profiles on nightly and release show the same amount of restyling, just slower on nightly).

Here's a few more tries:

Flags: needinfo?(emilio)

The regressing bug somehow slowed down needs_transition_update
significantly. It's still not super-clear to me why this would be the
case (it seems like the compiler made wildly different optimization
decisions).

In any case, this code seems very hot in this speedometer subsuite, and
thus is likely worth specializing. We can diff computed values much
faster.

There's some extra optimizations here (in particular avoiding some
copies), but I want to do that separately since we have that issue in
other places and now that we have better metadata we can easily
specialize them.

Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/60353d93a6df https://hg.mozilla.org/integration/autoland/rev/55b50619c45b Speed up transition property diffing. r=firefox-style-system-reviewers,layout-reviewers,dshin

Seems to have brought the numbers to pre-regression levels
Backfill pending

Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Blocks: 2017959
QA Whiteboard: [qa-triage-done-c150/b149]

(In reply to Pulsebot from comment #15)

Pushed by ealvarez@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/60353d93a6df
https://hg.mozilla.org/integration/autoland/rev/55b50619c45b
Speed up transition property diffing.
r=firefox-style-system-reviewers,layout-reviewers,dshin

Perfherder has detected a browsertime performance change from push 55b50619c45b8553b48faf1a63e919735b8494ee.

No action is required from the author; this comment is provided for informational purposes only.

Improvements Test Platform Options Absolute values [old vs new] Performance Profiles
7% speedometer3 NewsSite-Nuxt/NavigateToWorld/Sync (doc) linux1804-64-shippable-qr fission webrender 31.02 ms -> 28.91 ms Before/After
6% speedometer3 NewsSite-Nuxt/NavigateToPolitics/Sync (doc) linux1804-64-shippable-qr fission webrender 30.69 ms -> 28.94 ms Before/After
5% speedometer3 NewsSite-Nuxt/NavigateToWorld/Sync (doc) linux1804-64-shippable-qr fission webrender 30.84 ms -> 29.28 ms Before/After
5% speedometer3 NewsSite-Nuxt/NavigateToWorld/Sync (doc) macosx1500-aarch64-shippable fission webrender 4.51 ms -> 4.28 ms Before/After
5% speedometer3 NewsSite-Nuxt/NavigateToPolitics/Sync (doc) macosx1500-aarch64-shippable fission webrender 4.58 ms -> 4.36 ms Before/After
... ... ... ... ... ...
2% speedometer3 NewsSite-Next/total (doc) macosx1500-aarch64-shippable fission webrender 51.06 ms -> 49.95 ms Before/After

Need Help or Information?

If you have any questions, please reach out to afinder@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

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

Attachment

General

Created:
Updated:
Size: