Setup CodSpeed for continuous performance testing#111
Open
codspeed-hq[bot] wants to merge 1 commit intomainfrom
Open
Setup CodSpeed for continuous performance testing#111codspeed-hq[bot] wants to merge 1 commit intomainfrom
codspeed-hq[bot] wants to merge 1 commit intomainfrom
Conversation
- Install @codspeed/vitest-plugin@5.1.0 for benchmark instrumentation - Create vitest benchmark configuration with CodSpeed plugin integration - Add example benchmarks for array utilities (unique, flatten, sortBy, groupBy, intersection, difference) - Add example benchmarks for string utilities (kebabToCamel, camelToKebab, capitalize, truncate, escapeHTML) - Configure GitHub Actions workflow with OIDC authentication - Use simulation mode for consistent performance measurements - Add CodSpeed badge to README for performance tracking visibility
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Author
Congrats! CodSpeed is installed 🎉
You will start to see performance impacts in the reports once the benchmarks are run from your default branch.
|
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 integrates CodSpeed into the Semantic-Next repository to enable continuous performance monitoring of the codebase. CodSpeed provides reliable performance measurements in CI environments using specialized instrumentation that eliminates environmental noise.
Changes Made
vitest.bench.config.js) with CodSpeed pluginbenchmarks/directory:arrays.bench.js: Benchmarks for array utility functions (unique, flatten, sortBy, groupBy, intersection, difference, uniqueItems)strings.bench.js: Benchmarks for string utility functions (kebabToCamel, camelToKebab, capitalize, truncate, escapeHTML, joinWords).github/workflows/codspeed.yml):Test Plan
npx vitest bench --run --config vitest.bench.config.jscodspeed run --mode simulation --skip-upload -- npx vitest bench --run --config vitest.bench.config.jsNext Steps
After this PR is merged, the team can:
The example benchmarks demonstrate CodSpeed integration and provide a foundation for comprehensive performance testing across the framework.