We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b46854 commit 53c26bdCopy full SHA for 53c26bd
test/memory-leak.js
@@ -19,15 +19,14 @@ function next() {
19
global.gc()
20
sampleA = process.memoryUsage()
21
}
22
- if (i > 100000 * 5) {
+ if (i > 100000 * 10) {
23
if (typeof global.gc === 'function') {
24
25
sampleB = process.memoryUsage()
26
console.log('Memory usage at start:');
27
console.dir(sampleA)
28
console.log('Memory usage at end:');
29
console.dir(sampleB)
30
- assert(sampleA.heapTotal * 1.2 > sampleB.heapTotal, 'heapTotal should not grow by more than 20%')
31
assert(sampleA.heapUsed * 1.2 > sampleB.heapUsed, 'heapUsed should not grow by more than 20%')
32
33
} else {
0 commit comments