summaryrefslogtreecommitdiff
path: root/scripts/memory
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/memory')
-rw-r--r--scripts/memory/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/memory/index.js b/scripts/memory/index.js
index 2729c7631..29b20832d 100644
--- a/scripts/memory/index.js
+++ b/scripts/memory/index.js
@@ -75,9 +75,9 @@ let medianOfAll = median(sizes);
// If the trailing average is higher than the median, see if it's more than 5% higher
if (averageOfLastThirty > medianOfAll) {
let percentage = Math.abs(averageOfLastThirty - medianOfAll) / medianOfAll;
- if (percentage > 0.05) {
+ if (percentage > 0.1) {
throw new Error(
- `The average towards the end (${prettyBytes(averageOfLastThirty)}) is more than 5% higher than the median of all runs (${prettyBytes(
+ `The average towards the end (${prettyBytes(averageOfLastThirty)}) is more than 10% higher than the median of all runs (${prettyBytes(
medianOfAll
)}). This tells us that memory continues to grow and a leak is likely.`
);