Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bundle-size benchmark #845

Merged
merged 4 commits into from
May 17, 2024
Merged

Update bundle-size benchmark #845

merged 4 commits into from
May 17, 2024

Conversation

timostamm
Copy link
Member

This updates the code size comparison from a simple table to a chart. This lets us show how bundle size grows with multiple files.

The package is renamed from protobuf-bench to bundle-size. The module used in the comparison is changed from buf to googleapis. We use a small plugin to generate the entry points to make sure we compare the same data.

@@ -10,3 +10,8 @@ plugins:
- plugin: buf.build/protocolbuffers/js:v3.21.2
out: src/gen/google-protobuf
opt: import_style=commonjs
- plugin: entrypoints
path: ["tsx", "./src/protoc-gen-entrypoints.ts"]
Copy link
Member

Choose a reason for hiding this comment

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

Whoa 🧙‍♂️

@timostamm timostamm merged commit 48cc09c into main May 17, 2024
6 checks passed
@timostamm timostamm deleted the tstamm/update-bundle-size branch May 17, 2024 15:03
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.

None yet

2 participants