Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -833,9 +833,9 @@ async function runDevSession(
`${buildTool.name} dev (${cache}, timing): ${startupTime}ms`,
);
}
// Measurement is over. Restore the exact baseline while the server is
// alive, await each rebuild, then let graceful shutdown flush the cache.
if (runHmr) {
// Restore the baseline for the following warm startup, awaiting each
// rebuild before graceful shutdown flushes the cache.
if (cache === 'cold') {
for (const file of files)
await updateModule(file.path, file.baseline, file.marker);
}
Expand Down
Loading