Open Bug 1809175 Opened 2 years ago Updated 2 years ago

Determine and fix issue causing Fenix to take over 3 minutes on startup in performance tests

Categories

(Testing :: Raptor, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: sparky, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [fxp])

The Fenix perftests are taking an incredibly long amount of time to run (up to 60mins for a valid test). This seems to mainly be coming from the browser startup as it takes over 3 minutes at times which is very bad. This is where the majority of test time is being spent as we do 15 iterations where we startup the browser 15 times. At best, we are adding about 15 minutes to the test time assuming 1 minute for startup.

going back to nov 3:
https://treeherder.mozilla.org/jobs?repo=fenix&searchStr=bing&revision=61b7815e08994e2185ddb9225515ee11e5f7bd11

I looked at bing-fission and see pixel 2 @35 minutes and a51 @44 minutes (the 44 minutes seem to be what we run today still)

The run times have been like this since we've started testing on them unfortunately and I think we can address a good chunk of our device capacity issues if we resolve this. I wonder if there's something we could do at bitbar that might help. I think the issue in bug 1808231 may be related to an increase in test times as well.

See Also: → 1808231

I looked into the times some more on the tests before bug 1808231 and found that Pixel2 would take ~20-25 seconds to start the browser, and the A51 is around double that at 40-50s. At 15 iterations, this means that we are spending an extra 6 minutes on the A51 versus the P2.

Locally, I noticed that using a conditioned profile (not building the profile) caused a noticeable slowdown (it would double the startup time) so I've made a try run here to see if it's the same in CI. The same is happening for GeckoView, and Fenix locally so I'm testing GeckoView since Fenix is currently busted in CI: https://treeherder.mozilla.org/jobs?repo=try&revision=8b182192306246c82af811d87424d2d7d73d756b

So this is pretty interesting. I've disabled the conditioned profiles on geckoview and the startup is now taking 10-15 seconds rather than 40-50 seconds: https://treeherder.mozilla.org/jobs?repo=try&selectedTaskRun=XyxxE-_pSemFmWH-HUU9Ow.0&revision=8b182192306246c82af811d87424d2d7d73d756b

Looking in browsertime, and the only thing that's different between the two runs is that we add a profile template path for our conditioned profile here: https://github.com/sitespeedio/browsertime/blob/883d73bb3bbc43cefd4ff4f46f90846173361181/lib/firefox/webdriver/builder.js#L64

Update on this is that we should continue using the conditioned profile, but increase the startup delay 10-30s to allow for the browser to startup a bit.

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