docs: Add benchmark analysis and visualization components#1578
Open
docs: Add benchmark analysis and visualization components#1578
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a benchmark analysis and visualization system that dynamically generates performance comparison charts, tables, and environment information for the documentation. The implementation replaces static benchmark data with components that read from a generated JSON file.
Changes:
- Added a
gen:benchmarkscript that runs benchmarks and outputs results tobenchmark-results.json - Replaced static performance tables/images with dynamic Vue components (
BenchmarkChart,BenchmarkTable,BenchmarkEnvironment) - Updated performance documentation across all locales to use the new components
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Added npm script to generate benchmark data |
| .scripts/generate-benchmark.mjs | Benchmark generation script that runs tests and collects system info |
| docs/data/benchmark-results.json | Sample benchmark results with performance metrics and environment data |
| docs/.vitepress/theme/index.js | Registered new benchmark visualization components |
| docs/.vitepress/components/BenchmarkChart.vue | Chart component for visualizing benchmark performance |
| docs/.vitepress/components/BenchmarkTable.vue | Table component displaying benchmark comparisons |
| docs/.vitepress/components/BenchmarkEnvironment.vue | Component showing test environment details |
| docs/performance.md | Updated to use dynamic benchmark components |
| docs/ko/performance.md | Korean locale updated to use dynamic components |
| docs/ja/performance.md | Japanese locale updated to use dynamic components |
| docs/zh_hans/performance.md | Chinese locale updated to use dynamic components |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
raon0211
approved these changes
Jan 30, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1578 +/- ##
=======================================
Coverage 99.97% 99.97%
=======================================
Files 497 497
Lines 4660 4660
Branches 1347 1347
=======================================
Hits 4659 4659
Misses 1 1 🚀 New features to boost your workflow:
|
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.
part of #1260
same as #1564. Introduce a generator script that runs benchmarks, writing the results to benchmark-results.json, and generates dynamic charts and tables from this JSON file.
script:
screenshot
The chart, table and environment card are dynamically generated.