Skip to content

Commit 0d1afdf

Browse files
authored
perf: skip memory benchmark warmup runs (#199)
1 parent 74ee489 commit 0d1afdf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎scripts/benchmark.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ async function benchAllCases(): Promise<void> {
934934
for (const buildTool of shuffledBuildTools) {
935935
ensureMetrics(perfResult, buildTool.name);
936936
for (const measurement of ['timing', 'memory'] as const) {
937+
if (measurement === 'memory' && iteration < warmupTimes) continue;
937938
logger.info(`${buildTool.name}: ${measurement} pass`);
938939
for (const unit of runDev ? ['dev', 'build'] : ['build']) {
939940
const context = { tool: buildTool.name, measurement, unit, iteration };

0 commit comments

Comments
 (0)