Skip to content

Conversation

@codspeed-hq
Copy link
Contributor

@codspeed-hq codspeed-hq bot commented Jan 15, 2026

Summary

This PR integrates CodSpeed to enable continuous performance benchmarking in CI. CodSpeed will automatically track performance changes on every commit and pull request, providing detailed insights and catching performance regressions early.

Changes Made

  • Downgraded vitest from v4 to v3.2.4: CodSpeed currently supports vitest v3, not v4. This downgrade is necessary for compatibility with the CodSpeed vitest plugin. See tracking issue: Support vitest v4 CodSpeedHQ/codspeed-node#67
  • Added @codspeed/vitest-plugin v5.0.1: Integrated the official CodSpeed plugin for vitest benchmarks
  • Updated vitest.config.ts: Configured the CodSpeed plugin to instrument benchmarks
  • Created .github/workflows/codspeed.yml: New GitHub Actions workflow that runs benchmarks on every push to main, pull requests, and manual triggers using OIDC authentication
  • Added CodSpeed badge to README: Shows benchmark status and links to the CodSpeed dashboard

How It Works

The CodSpeed workflow will:

  1. Run on every push to main and on all pull requests
  2. Execute the existing benchmarks in the bench package
  3. Upload results to CodSpeed for analysis
  4. Provide performance comparison reports on PRs showing any performance changes

Testing

Benchmarks have been tested locally and run successfully with the new configuration:

  • All existing benchmarks pass
  • CodSpeed plugin correctly instruments the benchmark runs

Next Steps

After merging, the first workflow run will establish baseline performance metrics. Subsequent runs will compare against this baseline to detect performance changes.

- Downgrade vitest from v4 to v3.2.4 for CodSpeed compatibility
- Add @codspeed/vitest-plugin v5.0.1
- Configure vitest with CodSpeed plugin
- Add GitHub Actions workflow for automated benchmarking
- Add CodSpeed badge to README
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 15, 2026

Deploying markdown-exit with  Cloudflare Pages  Cloudflare Pages

Latest commit: afbedb9
Status: ✅  Deploy successful!
Preview URL: https://839968a9.markdown-exit.pages.dev
Branch Preview URL: https://setup-codspeed-1768492566717.markdown-exit.pages.dev

View logs

codspeed-hq bot added 2 commits January 15, 2026 16:05
- Downgrade vitest from v4 to v3.2.4 for CodSpeed compatibility
- Add @codspeed/vitest-plugin v5.0.1
- Configure vitest with CodSpeed plugin
- Add GitHub Actions workflow for automated benchmarking
- Add CodSpeed badge to README
@codspeed-hq
Copy link
Contributor Author

codspeed-hq bot commented Jan 15, 2026

CodSpeed Performance Report

Congrats! CodSpeed is installed 🎉

🆕 6 new benchmarks were detected.

You will start to see performance impacts in the reports once the benchmarks are run from your default branch.

Detected benchmarks

@serkodev serkodev marked this pull request as ready for review January 15, 2026 17:03
@serkodev serkodev merged commit cee085e into main Jan 15, 2026
9 checks passed
@serkodev serkodev deleted the setup-codspeed-1768492566717 branch January 15, 2026 17:05
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