Closed Bug 2084985 Opened 1 month ago Closed 17 days ago

Consider removing the initial 30s wait from nav-bench

Categories

(Testing :: Raptor, task, P2)

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: acreskey, Assigned: acreskey)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fxp][operational][est-1d][fxpe])

Attachments

(1 external file)

nav-bench starts each browser cycle with a 30s wait.byTime. In CI it runs with --conditioned-profile=settled, so raptor's post_startup_delay is already 1s; locally the two waits stack to 60s.

A try comparison removing the wait (10 jobs per platform, linux / macOS / Windows ref) showed no change in overall score or CoV, and saved ~150s per job:
https://perf.compare/compare-lando-results?landoInstance=lando-prod-2025&baseLando=108566&newLando=108567&baseRepo=try&newRepo=try&framework=13

Platform Overall CoV (before → after) Mean change Median task time
Linux 0.9% → 0.8% +0.0% 24.1 → 21.6 min (−151s)
macOS 0.6% → 1.1% −0.1% 21.4 → 19.0 min (−145s)
Windows ref 1.0% → 1.2% +0.3% 30.2 → 27.4 min (−164s)

That being said, there appears to be additional noise around the google nav on MacOS, which I will look into

Subtest Platform Before → after
wikipedia-nav-load Linux 12.6% → 5.7% (better)
google-nav-load macOS 10.7% → 16.7% (worse)
google-nav-load Windows 13.6% → 11.3% (better)
duckduckgo-nav-subnav macOS 12.0% → 16.5% (worse)
reddit-nav-load Windows 4.6% → 7.6% (worse)
Flags: needinfo?(acreskey)
Whiteboard: [fxp]

@acreskey priority, severity, and estimate set. Are you planning to work on this? If so, please assign it to yourself.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [fxp] → [fxp][operational][est-1d]
Assignee: nobody → acreskey
Flags: needinfo?(acreskey)

Try showed no change in score or noise without it, and it costs ~150s per job.

Attachment #9678173 - Attachment description: WIP: Bug 2084985 - Remove the initial 30s wait from nav-bench. r?#perftest-reviewers,kshampur → Bug 2084985 - Remove the initial 30s wait from nav-bench. r?#perftest-reviewers,kshampur
Whiteboard: [fxp][operational][est-1d] → [fxp][operational][est-1d][fxpe]

Removing the initial 30s wait regressed nav-bench on macOS: google-nav-load dropped 9.9% and CoV rose on several sites.

The cause is the font info loader (gfx.font_loader.delay, 8s on macOS), which then fired in the middle of the measured loads instead of during the wait. With gfx.font_loader.delay=0 added to the nav-bench prefs, no platform regresses and macOS noise is back near the old level, while saving ~150s per job.

macOS test CoV, 30s wait CoV, no wait CoV, no wait + delay=0
google-nav-load 4.88% 8.32% 4.35%
wikipedia-nav-load 2.37% 4.63% 3.73%
facebook-nav-load 1.85% 3.98% 2.69%
google-docs-nav-load 1.93% 3.56% 2.42%
bbc-nav-load 1.22% 2.82% 1.11%

nice find!

i haven't had a chance yet to dig into the noise increase in bug 2081350 , i wonder if it is related

Ah,has profile-analyzer been able to find root cause?
One thing I think we'll need to get removed asap is the glean flush before each URL, https://github.com/sitespeedio/browsertime/pull/2657

(In reply to Andrew Creskey [:acreskey] from comment #7)

Ah,has profile-analyzer been able to find root cause?
One thing I think we'll need to get removed asap is the glean flush before each URL, https://github.com/sitespeedio/browsertime/pull/2657

partly! the google noise in bug 2081350 looks like it's the pkcs#11 utility process starting up on the first tls handshake, details in bug 2081350, comment 4.

so i don't think it's the font loader, in those runs that fires during the 30s wait...

+1 on removing the glean flush

Status: NEW → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
Regressions: 2094115
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: