Skip to content

Setup foundation for retrieving LCP Framework metrics across various sites#156

Merged
AlexanderKaran merged 2 commits intoe18e:mainfrom
rdforte:stats-pull-container
Feb 25, 2026
Merged

Setup foundation for retrieving LCP Framework metrics across various sites#156
AlexanderKaran merged 2 commits intoe18e:mainfrom
rdforte:stats-pull-container

Conversation

@rdforte
Copy link
Collaborator

@rdforte rdforte commented Feb 24, 2026

Description

This is a foundational PR which sets up the logic and container for pulling LCP metrics across various sites using the http archive and calculates the Percentiles: P50, P75, P90, P95, P99.

I have added all the details on how to run and test the container locally in a README - let me know if this would be best suited elsewhere.

At the moment I have the stats pulling from httparchive.sample_data.pages_10k to get around not having billing and staying within the free tier. I might see if later once we have a GCP account that has billing if we can configure this so on local we use the sample data but in prod we use the full dataset.

After running the container here is what you will see in your console. Note I am just using React and Next.js for now but we can extend this in a future PR to include more frameworks.

Starting LCP Query
Running LCP Query for frameworks: [REACT,NEXT.JS]
Job 7db9c6f5-e4d7-4dd9-ad13-3129e345f395 started.
[
  {
    framework: 'REACT',
    coreWebVital: 'LCP',
    numSitesMeasured: 2703,
    stats: {
      numericUnit: 'ms',
      p50: 2020.733,
      p75: 3479.304,
      p90: 5530.429,
      p95: 7610.593,
      p99: 14559.162
    }
  },
  {
    framework: 'NEXT.JS',
    coreWebVital: 'LCP',
    numSitesMeasured: 1307,
    stats: {
      numericUnit: 'ms',
      p50: 1877.716,
      p75: 3134.579,
      p90: 4898.01,
      p95: 6537.2,
      p99: 13152.674
    }
  }
]
Finished LCP Query

Checklist

  • If updating UI/UX components ensure you have added screenshots or a gif or video of the changes to the PR description
  • If this is a dependabot PR that bumps a metaframework version, ensure that all package versions in the package match the versions installed by the metaframework version being bumped
  • If this is a dependabot PR that bumps a metaframework version in a starter-* package, ensure that the deps, and file content matches the output of the metaframeworks recommended starter/default project

@rdforte rdforte self-assigned this Feb 24, 2026
@rdforte
Copy link
Collaborator Author

rdforte commented Feb 24, 2026

looks like I've accidentally bumped all the framework packages. Resolving this

@rdforte rdforte marked this pull request as draft February 24, 2026 20:58
@rdforte rdforte force-pushed the stats-pull-container branch from 3bd0d00 to a92d41d Compare February 24, 2026 20:58
@rdforte rdforte force-pushed the stats-pull-container branch from a92d41d to cc94265 Compare February 24, 2026 21:01
@rdforte rdforte marked this pull request as ready for review February 24, 2026 21:04
@AlexanderKaran AlexanderKaran merged commit 072cc4c into e18e:main Feb 25, 2026
1 check passed
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.

2 participants