-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core(network-analyzer): use arithmetic mean for median #15096
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d8af3c7
core(network-analyzer): use arithmetic mean for median of even samples
connorjclark fb08222
Update core/lib/dependency-graph/simulator/network-analyzer.js
connorjclark a5eca34
comments
connorjclark 77f273e
cool
connorjclark 1e537ed
update test snaps
connorjclark 2df98d4
cantdothat
connorjclark 0f274c6
jest snapshot update format sux
connorjclark e6f6c90
Merge remote-tracking branch 'origin/main' into nit-median-avg
connorjclark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
{ | ||
"roughEstimateOfFCP": { | ||
"p50": 0.292391744233104, | ||
"p90": 0.49063322495742373, | ||
"p50": 0.2880704563650921, | ||
"p90": 0.48970428858956494, | ||
"p95": 0.5191288993525603 | ||
}, | ||
"roughEstimateOfFMP": { | ||
"p50": 0.3131914893617021, | ||
"p50": 0.3123404255319149, | ||
"p90": 0.5385564466378778, | ||
"p95": 0.6417150302025346 | ||
"p95": 0.6414781475778751 | ||
}, | ||
"roughEstimateOfSI": { | ||
"p50": 0.26498844703879365, | ||
"p50": 0.26511005715675545, | ||
"p90": 0.6462556888705007, | ||
"p95": 0.9006036782254668 | ||
}, | ||
"roughEstimateOfTTI": { | ||
"p50": 0.26853932584269663, | ||
"p90": 0.674238788460513, | ||
"p95": 0.743897672766033 | ||
"p90": 0.6741321388577828, | ||
"p95": 0.7425119914727305 | ||
}, | ||
"roughEstimateOfLCP": { | ||
"p50": 0.20407433881343817, | ||
"p90": 0.6299877796078848, | ||
"p50": 0.20175125089349535, | ||
"p90": 0.6705274690874942, | ||
"p95": 0.8768898488120951 | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm seems like a lot..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This came from these estimates:
in
_estimateResponseTimeByOrigin
'sMath.max(ttfb - rtt, 0)
,ttfb - rtt
is somehow negative so we get a zero as an estimate.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The zero estimate came from this record:
https://mnl4bjjsnz-dsn.algolia.net/1/indexes/dev_OFFICE_SCENES/query
,ttfb 49
(slightly more than the rtt estimate of 49.56)The second, higher estimate came from:
https://mnl4bjjsnz-dsn.algolia.net/1/indexes/dev_OFFICE_SCENES/query
,ttfb 575
it's reasonable for query time to be so variable for such a website, so I think taking the average-ish value here (via the median changes in this PR) is good.