Skip to content

Commit

Permalink
added --expose-gc to npm test script
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-page committed Aug 8, 2016
1 parent df8c7b2 commit 78bf69e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Connection Pool for tedious.",
"main": "lib/connection-pool.js",
"scripts": {
"test": "node_modules/.bin/mocha test/test.js"
"test": "node_modules/.bin/mocha --expose-gc test/test.js"
},
"repository": {
"type": "git",
Expand Down
6 changes: 2 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@ describe('Load Test', function() {

var heapUsedKB = Math.round(process.memoryUsage().heapUsed / 1024);
mem.push([count, heapUsedKB]);

console.log(count + ': ' + heapUsedKB + 'KB');
// console.log(count + ': ' + heapUsedKB + 'KB');

if (count === max) {
var data = statistics.linearRegression(mem);
Expand Down Expand Up @@ -477,8 +476,7 @@ describe('Load Test', function() {
} else {
var heapUsedKB = Math.round(process.memoryUsage().heapUsed / 1024);
mem.push([count, heapUsedKB]);

console.log(count + ': ' + heapUsedKB + 'KB');
// console.log(count + ': ' + heapUsedKB + 'KB');
}
}
});
Expand Down

0 comments on commit 78bf69e

Please sign in to comment.