Repository navigation
Add CodSpeed performance benchmarks and CI integration - #4
Open
codspeed[bot] wants to merge 1 commit into
Open
codspeed[bot] wants to merge 1 commit into
codspeed[bot] wants to merge 1 commit into
Conversation
|
✅ Health: 10.0 🚨 Change risk: 7.8/10 (high)
📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-06-24 08:19 UTC |
This branch has not been deployed
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.
Summary
This PR sets up continuous performance measurement with CodSpeed for OpenAlice.
It adds a vitest-based benchmark harness using the official
@codspeed/vitest-plugin, an initial set of benchmarks covering hot-path pure functions, and a GitHub Actions workflow that runs the benchmarks on every push and pull request.Changes
@codspeed/vitest-pluginas a dev dependency.vitest.bench.config.ts, a dedicated benchmark config that loads the CodSpeed plugin and mirrors the workspace path aliases fromvitest.config.ts(so benchmarks can import fromsrc/*and the workspace packages without a priordist/build).benchmarks/core.bench.tswith benchmarks for CPU-bound, deterministic helpers:parseDuration(scheduling / cron / pump timers)compareVersionsandgetRepoSlug(version awareness)inferCredentialVendorandresolveAnthropicAuthMode(credential inference)benchscript topackage.json..github/workflows/codspeed.yml, mirroring the existing CI's pnpm + Node 22 setup. It uses OIDC authentication and runs in CodSpeed'ssimulationinstrument.Verification
The benchmarks were run locally with the CodSpeed CLI in simulation mode and uploaded successfully, linked to the
2233admin/OpenAlicerepository. All four benchmarks execute and report results.Next steps
pnpm bench.