-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Allow for dropped updates in the benchmarks #4691
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Ignored Deployments
|
✅ This change can build |
🟢 CI successful 🟢Thanks |
crates/turbopack-bench/src/lib.rs
Outdated
/// The maximum amount of time to wait for HMR during the actual benchmark. This | ||
/// is a lot shorter than the init timeout because we expect updates to | ||
/// generally happen quickly, and we don't want to wait for a long time when an | ||
/// update is dropped. | ||
const MAX_UPDATE_TIMEOUT: Duration = Duration::from_secs(5); |
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.
Isn't that a bit too short for 30k modules with e. g. webpack?
Maybe we can scale the number by number of modules?
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.
Indeed, I forgot just how slow these were. The issue with having too high a number here is that it considerably slows down benchmarks when updates are, in fact, dropped. Perhaps this timeout should be variable, or exponential.
dbba87d
to
67d9209
Compare
### Description This improves the reliability of HMR benchmarks for bundlers that can drop updates (Vite, Turbopack). Before, an update being dropped meant the whole benchmark was canceled. ### Testing Instructions Running the benchmarks
### Description This improves the reliability of HMR benchmarks for bundlers that can drop updates (Vite, Turbopack). Before, an update being dropped meant the whole benchmark was canceled. ### Testing Instructions Running the benchmarks
### Description This improves the reliability of HMR benchmarks for bundlers that can drop updates (Vite, Turbopack). Before, an update being dropped meant the whole benchmark was canceled. ### Testing Instructions Running the benchmarks
Description
This improves the reliability of HMR benchmarks for bundlers that can drop updates (Vite, Turbopack). Before, an update being dropped meant the whole benchmark was canceled.
Testing Instructions
Running the benchmarks