Pageload experiment: -O2, -Oz build flags
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.
┆Issue is synchronized with this Jira Task
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.
https://crash-stats.mozilla.org/report/index/c0845347-0e97-4402-ae61-6cb020200125
New crashes on 73b: https://crash-stats.mozilla.org/topcrashers/?product=Fenix&version=73.0b0
Updated pre-experimental impact analysis. Initial phase 2 experiment results expected o/a Feb 18
Initial analysis of phase 2 data found no statistically significant difference in crash rates and a statistically significant improvement in page load performance.
Update here: We'll be rolling out 4.2 with GV Beta 75, which does not have the experiment enabled.
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.
This still sounds like it might be worth doing?
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
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.
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.
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.
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1807359
Change performed by the Move to Bugzilla add-on.