-
-
Notifications
You must be signed in to change notification settings - Fork 726
ci(benchmarks): Update formatter fixtures #15658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(benchmarks): Update formatter fixtures #15658
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the formatter benchmark fixtures by introducing a dedicated formatter() method with a curated set of test files spanning various sizes and file types, and refactors existing test file methods for consistency.
- Adds a new
formatter()method with 9 test files ranging from small (2.46KB) to extra large (346KB) covering JSX, TS, TSX, and JS files - Updates the formatter benchmark to use the new dedicated
formatter()fixtures instead ofminimal() - Refactors
complicated()method to inline the URL array, improving code consistency
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tasks/common/src/test_file.rs | Removes unused react() method, adds new formatter() method with diverse test files, and refactors complicated() for consistency |
| tasks/benchmark/benches/formatter.rs | Updates formatter benchmark to use TestFiles::formatter() instead of minimal() |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CodSpeed Performance ReportMerging #15658 will not alter performanceComparing Summary
Benchmarks breakdown
Footnotes
|
677d4a5 to
9a9eba7
Compare
|
I am fine with changing benchmark files, but adding more formatter benchmark files will cause CI to be a bit slow. What do you think? @Boshen |
|
I'll merge it for now. After that, I'll compare the execution times with the original benchmark. |
Merge activity
|
Fixes #15628 - Remove unused `TestFiles::react()` - Refactor private function to be inlined - Add formatter fixtures - Expand timeout 5 > 10s
9a9eba7 to
e615162
Compare
|
NOTE: Since stopped downloading huge files, it actually feels a bit faster... |

Fixes #15628
TestFiles::react()