ci(benchmark/react): avoid repeat#1621
Conversation
|
📝 WalkthroughWalkthroughUpdated perfetto script entries in benchmark/react/package.json to run once per command and write output to specific .ptrace files. Removed --repeat flags, set outputs to dist/001-fib.ptrace and dist/002-hello-reactLynx.ptrace, and retained --wait-for-id=stop-benchmark-true for the 002 script. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
There was a problem hiding this comment.
Pull Request Overview
This PR removes the --repeat parameter from benchmark commands to avoid duplication in performance testing. The change simplifies the benchmark execution by removing redundant repeat configurations that may have been causing issues or unnecessary overhead.
- Removes
--repeat=1from the fibonacci benchmark command - Removes
--repeat=5from the ReactLynx hello world benchmark command
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
benchmark/react/package.json (1)
13-14: Ensure dist exists before writing .ptrace files.If dist/ isn’t present (or build wasn’t run), benchx_cli may fail to open the output path. Create the directory inline to harden the scripts.
Apply this diff:
- "perfetto:001-fib": "benchx_cli -o dist/001-fib.ptrace run dist/001-fib.lynx.bundle", - "perfetto:002-hello-reactLynx": "benchx_cli -o dist/002-hello-reactLynx.ptrace run dist/002-hello-reactLynx.lynx.bundle --wait-for-id=stop-benchmark-true" + "perfetto:001-fib": "node -e 'require(\"fs\").mkdirSync(\"dist\",{recursive:true})' && benchx_cli -o dist/001-fib.ptrace run dist/001-fib.lynx.bundle", + "perfetto:002-hello-reactLynx": "node -e 'require(\"fs\").mkdirSync(\"dist\",{recursive:true})' && benchx_cli -o dist/002-hello-reactLynx.ptrace run dist/002-hello-reactLynx.lynx.bundle --wait-for-id=stop-benchmark-true"
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
benchmark/react/package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: build / Build (Windows)
- GitHub Check: build / Build (Ubuntu)
- GitHub Check: test-rust / Test (Ubuntu)
- GitHub Check: CodeQL Analyze (actions)
- GitHub Check: CodeQL Analyze (javascript-typescript)
🔇 Additional comments (2)
benchmark/react/package.json (2)
13-14: LGTM: single-run Perfetto traces with deterministic outputs.Dropping repeats and writing to fixed .ptrace files will make CI artifacts predictable.
13-14: Confirm the stop-benchmark-true event is emitted by dist/002-hello-reactLynx.lynx.bundle. Otherwise, the perfetto:002 script will hang.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
CodSpeed Performance ReportMerging #1621 will degrade performances by 41.44%Comparing Summary
Benchmarks breakdown
Footnotes |
Web Explorer#4661 Bundle Size — 368.23KiB (0%).760338b(current) vs bc310a8 main#4642(baseline) Bundle metrics
Bundle size by type
|
| Current #4661 |
Baseline #4642 |
|
|---|---|---|
236.23KiB |
236.23KiB |
|
100.16KiB |
100.16KiB |
|
31.84KiB |
31.84KiB |
Bundle analysis report Branch hzy:p/hzy/bench_1 Project dashboard
Generated by RelativeCI Documentation Report issue
React Example#4668 Bundle Size — 237.06KiB (0%).760338b(current) vs bc310a8 main#4649(baseline) Bundle metrics
|
| Current #4668 |
Baseline #4649 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
4 |
4 |
|
158 |
158 |
|
64 |
64 |
|
45.83% |
45.83% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #4668 |
Baseline #4649 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
91.3KiB |
91.3KiB |
Bundle analysis report Branch hzy:p/hzy/bench_1 Project dashboard
Generated by RelativeCI Documentation Report issue
Summary by CodeRabbit
Checklist