Skip to content

Commit

Permalink
feat(webvitals): Moves total perf score explainer up and add min late…
Browse files Browse the repository at this point in the history
…ncy for inp (#9460)
  • Loading branch information
edwardgou-sentry authored Mar 15, 2024
1 parent 29b7c85 commit 873d850
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/product/performance/web-vitals/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ At the center of the **Page Overview**, Web Vital p75 values and scores are disp

**Performance Score** is a rating from 0 to 100 that summarizes the perceived performance of your web application. Page loads and Interactions on your web application are scored based on their **Web Vitals**. Each **Web Vital** is given a rating from 0 to 100 through a [Log-Normal Distribution](https://www.desmos.com/calculator/o98tbeyt1t), which is then weighed and aggregated by page and overall for your entire web application.

The overall **Performance Score** of your web application is the weighted average of your **Page Load** and **Interaction** scores. If your web application has far more Page Load scores than Interaction scores, your overall **Performance Score** will be biased towards Page Loads, and vice versa. An equal number of Page Load and Interaction scores produces an overall **Performance Score** comprised of a 50/50 average.

<Note>
Performance Scores are currently only supported on desktop web browsers.
</Note>

A **Page Load Performance Score** is comprised of up to 4 individual **Web Vital** components found on each event. The default weights and rating thresholds for each **Web Vital** can be found in the table below.

| Page Load Web Vital | P90 (Good) | P50 (Meh) | Weight |
Expand All @@ -99,10 +105,8 @@ An **Interaction Performance Score** is based off a single **Web Vital** compone
| --------------------------------------------------------------- | ------------------------------------------------------ | ------------------------------------------------------ | ------ |
| [Interaction to Next Paint](/product/performance/web-vitals/web-vitals-concepts/#interaction-to-next-paint-inp) (INP) | [200ms](https://www.desmos.com/calculator/jaqxodpx8d) | [500ms](https://www.desmos.com/calculator/jaqxodpx8d) | 100% |

The overall **Performance Score** of your web application is the weighted average of your **Page Load** and **Interaction** scores. If your web application has far more Page Load scores than Interaction scores, your overall **Performance Score** will be biased towards Page Loads, and vice versa. An equal number of Page Load and Interaction scores produces an overall **Performance Score** comprised of a 50/50 average.

<Note>
Performance Scores are currently only supported on desktop web browsers.
For an interaction to be considered an INP candidate, it must have a latency of at least [40ms](https://github.com/GoogleChrome/web-vitals/blob/v3.5.2/src/onINP.ts#L209).
</Note>

## Opportunity
Expand Down

0 comments on commit 873d850

Please sign in to comment.