Skip to content

feat: add Bun to react-1k benchmark - #204

Open
heyq02 wants to merge 2 commits into
rstackjs:mainfrom
heyq02:cursor/add-bun-bundler
Open

heyq02 wants to merge 2 commits into
rstackjs:mainfrom
heyq02:cursor/add-bun-bundler

Conversation

@heyq02

@heyq02 heyq02 commented Oct 12, 2026 •

Copy link
Copy Markdown

Summary

  • Add Bun as a react-1k benchmark tool via bun-dev.mjs / bun-build.mjs wrappers that print Benchmark Start Time for the harness.
  • Make binFilePath optional in the harness (Bun is a system binary, not an npm CLI) and clear .bun caches between runs.
  • Install Bun in CI with oven-sh/setup-bun and mention Bun in the README tool list.

Closes #57

Test plan

  • CASE=react-1k TOOLS=bun WARMUP_TIMES=0 RUN_TIMES=1 node ./scripts/benchmark.ts locally (startup / HMR / build / memory all succeeded)
  • Confirm CI benchmark job installs Bun and runs react-1k with Bun included
  • Follow-up: extend Bun to other cases / refresh README result tables after CI numbers land

Made with Cursor

Wire Bun into the harness via case wrappers and CI setup so startup, HMR, and build metrics can be compared alongside existing bundlers.

Co-authored-by: Cursor <cursoragent@cursor.com>
@heyq02
heyq02 marked this pull request as draft October 12, 2026 16:11
Repository policy rejects version tags on third-party actions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@heyq02
heyq02 marked this pull request as ready for review October 13, 2026 01:39
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.

Add Bun to list of bundlers

1 participant