Skip to content

core(audit): Add 10ms threshold to bootup-time audits#4223

Merged
paulirish merged 3 commits intomasterfrom
bug/bootup-time-10ms
Jan 10, 2018
Merged

core(audit): Add 10ms threshold to bootup-time audits#4223
paulirish merged 3 commits intomasterfrom
bug/bootup-time-10ms

Conversation

@wardpeet
Copy link
Collaborator

@wardpeet wardpeet commented Jan 9, 2018

Fixes #4220

Result:
screenshot 2018-01-09 22 58 23

const results = Array.from(executionTimings)
.map(([url, groups]) => {
// Add up the totalBootupTime for all the taskGroups
totalBootupTime += Object.keys(groups).reduce((sum, name) => sum += groups[name], 0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

@paulirish should we create an "Other" entry in the table so the total still adds up?

Copy link
Member

Choose a reason for hiding this comment

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

ehhhh we could. wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm in favor of "Other" unless there are better ideas

Copy link
Member

Choose a reason for hiding this comment

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

I looked into this and the table already doesn't sum to the total time displayed. the total time shown at the top includes all non-script time (layouts/paints/etc)

so if we really wanted to also capture those, we might do something like

image

but it's kinda wonky.

I'm in favor of skipping the "other" row(s)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Alright that's fine we can skip too

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So what's the advice here? 😋

@paulirish paulirish force-pushed the bug/bootup-time-10ms branch from 1e36cea to 366a3fc Compare January 10, 2018 23:52
@GoogleChrome GoogleChrome deleted a comment from googlebot Jan 10, 2018
@paulirish paulirish merged commit 5b0ece8 into master Jan 10, 2018
@paulirish paulirish deleted the bug/bootup-time-10ms branch January 10, 2018 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants