Skip to content

Commit

Permalink
Performance: Use median to stabilize the First Block metric (#54157)
Browse files Browse the repository at this point in the history
* Calculate median instead of average for the FBL metric
* Apply median to all loading metrics for stability
  • Loading branch information
WunderBart authored Sep 5, 2023
1 parent c162b0d commit 8e8048e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/performance/config/performance-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ export function curateResults(
timeToFirstByte: median( results.timeToFirstByte ),
largestContentfulPaint: median( results.largestContentfulPaint ),
lcpMinusTtfb: median( results.lcpMinusTtfb ),
serverResponse: average( results.serverResponse ),
firstPaint: average( results.firstPaint ),
domContentLoaded: average( results.domContentLoaded ),
loaded: average( results.loaded ),
firstContentfulPaint: average( results.firstContentfulPaint ),
firstBlock: average( results.firstBlock ),
serverResponse: median( results.serverResponse ),
firstPaint: median( results.firstPaint ),
domContentLoaded: median( results.domContentLoaded ),
loaded: median( results.loaded ),
firstContentfulPaint: median( results.firstContentfulPaint ),
firstBlock: median( results.firstBlock ),
type: average( results.type ),
minType: minimum( results.type ),
maxType: maximum( results.type ),
Expand Down

0 comments on commit 8e8048e

Please sign in to comment.