Skip to content

Commit

Permalink
fix: ignore memory stastics in hmr stage
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Nov 20, 2024
1 parent 03bf1ac commit 8bfcdf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ function getOverThresholdTags(diff) {
if (typeof data.baseMean !== 'number') {
return null;
}
if (data.currentMean / data.baseMean < 1.05) {
if (tag.endsWith("memory")) {
// The memory usage is unstable (with fluctuations of approximately 20%), so it won't be counted for now.
return null;
} else if (data.currentMean / data.baseMean < 1.05) {
return null;
}
return tag;
Expand Down

0 comments on commit 8bfcdf4

Please sign in to comment.