Add component size benchmark runner, generated reports, and GitHub Action#128
Draft
developit wants to merge 1 commit into
Draft
Add component size benchmark runner, generated reports, and GitHub Action#128developit wants to merge 1 commit into
developit wants to merge 1 commit into
Conversation
✅ Deploy Preview for kinu-sh ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
Size Change: 0 B Total Size: 37.7 kB ℹ️ View Unchanged
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
Description
benchmarks/size/run-components.mjsthat bundles component groups, measures raw/gzip/brotli sizes, computes shared overlaps and sampled Shapley attributions, and emits viewer + JSON/MD artifacts.benchmarks/size/results/:components.html,components.md,components.json,components.sankey.json, andcomponents.shapley.json.bench:size:componentsinpackage.jsonto run the new measurement (node benchmarks/size/run-components.mjs)..github/workflows/component-size.ymlthat installs dependencies, runspnpm bench:size:components, and uploads the generated reports as thekinu-component-size-reportartifact.Testing
pnpm bench:size:components(invokesnode benchmarks/size/run-components.mjs) which completed successfully and produced the files inbenchmarks/size/results/includingcomponents.html,components.md, andcomponents.json.pnpm install --frozen-lockfileandpnpm bench:size:componentsand to upload the artifacts; no unit tests were modified or added as part of this change.Codex Task