8000
Skip to content

core: add TBT savings to bootup-time - #15431

Merged
adamraine merged 4 commits into
mainfrom
bootup-time-savings
Sep 6, 2023
Merged

core: add TBT savings to bootup-time#15431
adamraine merged 4 commits into
mainfrom
bootup-time-savings

Conversation

@adamraine
Copy link
Copy Markdown
Contributor

Similar to DOM size this computes TBT impact based on the subset of main tasks with relevant group ids.

@adamraine
adamraine requested a review from a team as a code owner August 31, 2023 22:16
@adamraine
adamraine requested review from brendankenny and removed request for a team August 31, 2023 22:16

try {
const metricComputationData = Audit.makeMetricComputationDataInput(artifacts, context);
const tasks = await TBTImpactTasks.request(metricComputationData, context);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory it would be better to compute these tasks once and use them for normal procedure on this audit. Unfortunately this would break one of our test cases which asserts this audit get's no data for a bad trace.

I'm open to changing that logic, it means this audit would error whenever TBT errors which seems reasonable to me. It didn't seem important enough just to make the code neater IMO.

@adamraine adamraine changed the title core: add TBT savings to bootup-time core: add TBT savings to bootup-time Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0