fenix icon indicating copy to clipboard operation
fenix copied to clipboard

Pageload experiment: -O2, -Oz build flags

Open liuche opened this issue 6 years ago • 14 comments

edit: see https://github.com/mozilla-mobile/fenix/issues/7795#issuecomment-861569546 for what the next steps for this issue are.

Why/User Benefit/User Problem

Switching to the -O2 flag has pageload perf improvements, but increases apk size by ~6MB.

Need this experiment to measure tradeoffs.

What/Requirements

  • [x] Stability experimentation on 3.2 1/22-1/27 w/ GV 74 Nightly
  • [ ] A/B test on Firefox Preview Release (pending Phase 1): 1/27-2/14 w/ GV 73 Beta
  • [ ] Decide which version of GV to use for upcoming releases
  • [ ] Update GV version in AC right before 3.3 goes out

This experiment would be run in staged rollout through Google Play, because Mako doesn't have this capability. Johan is assisting with this. Corey from the Data Science team is involved in analyzing the results for retention.

Acceptance Criteria (how do I know when I’m done?)

Data Science has results that allow us to make a perf decision.

Meeting notes

┆Issue is synchronized with this Jira Task

liuche avatar Jan 18 '20 01:01 liuche

Don't want to spam here, but I think this is a no-brainer - if it actually results in pageload performance, a larger apk size pays for itself in terms of marketshare and people willing to try the browser because of the page load performance.

yoasif avatar Jan 18 '20 02:01 yoasif

https://crash-stats.mozilla.org/report/index/c0845347-0e97-4402-ae61-6cb020200125

liuche avatar Jan 25 '20 04:01 liuche

New crashes on 73b: https://crash-stats.mozilla.org/topcrashers/?product=Fenix&version=73.0b0

liuche avatar Feb 01 '20 07:02 liuche

Updated pre-experimental impact analysis. Initial phase 2 experiment results expected o/a Feb 18

ecsmyth avatar Feb 14 '20 16:02 ecsmyth

Initial analysis of phase 2 data found no statistically significant difference in crash rates and a statistically significant improvement in page load performance.

ecsmyth avatar Feb 19 '20 18:02 ecsmyth

Plan for phase 3

ecsmyth avatar Feb 25 '20 16:02 ecsmyth

Update here: We'll be rolling out 4.2 with GV Beta 75, which does not have the experiment enabled.

liuche avatar Mar 24 '20 01:03 liuche

See: https://github.com/mozilla-mobile/fenix/issues/17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 15 '21 01:06 stale[bot]

This still sounds like it might be worth doing?

lnicola avatar Jun 15 '21 06:06 lnicola

We didn't find enough evidence of performance improvement in the experiment to justify the increase in APK size.

That being said, this strategy, choosing build optimization that favors speed, still has future potential. • We may be able to better measure performance in the wild at a future date • We may be able to reduce the APK size and thus "pay for" the increase in size that this change leads to • There is another build option -Os, that's also faster than what we use now, but leads to a smaller increase in APK size that -O2

acreskeyMoz avatar Jun 15 '21 14:06 acreskeyMoz

Ah, I just read through the discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1670948. I still think the measured improvements like in https://bugzilla.mozilla.org/show_bug.cgi?id=1591725#c46 are more relevant than the A/B testing results (if Firefox got 2x faster, most of the people I know wouldn't use it more), but at least it was tried.

lnicola avatar Jun 15 '21 15:06 lnicola

Yes, I'm also in favor of exploring this change again. I just brought it up with my manager to consider for future mobile projects.

acreskeyMoz avatar Jun 15 '21 15:06 acreskeyMoz

See: https://github.com/mozilla-mobile/fenix/issues/17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 12 '21 17:12 stale[bot]

Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1807359

Change performed by the Move to Bugzilla add-on.

cpeterso avatar Dec 23 '22 20:12 cpeterso