Skip to content

Commit

Permalink
chore(performance-tests): Add additional pause after initial build
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jan 20, 2019
1 parent 9d43dc2 commit e315e97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions performance/measure-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ async function launchWebpackDevServer(args, environmentName, onReady) {
process.hrtime(startTime)[0] + Math.round(process.hrtime(startTime)[1] / 1000000) / 1000;
timings.push(elapsed);
}
if (runs === 0) {
// Wait for the initial build to be done
// including garbage collection
await sleep(10000);
}
// Wait for a moment to prevent running into thresholds
await sleep(3500);
runs++;
Expand Down

0 comments on commit e315e97

Please sign in to comment.