make fast leak linear

This commit is contained in:
Sérgio Ramos 2016-11-25 10:32:59 +00:00
parent 811b636a9f
commit 47d8576bbb

View File

@ -19,10 +19,10 @@ module.exports = (server) => {
const start = process.hrtime();
anotherLeak.push({
longStr: new Array(Math.ceil(anotherLeak.length * 1.5)).map((v, i) => i)
longStr: new Array(Math.ceil(anotherLeak.length * 2)).map((v, i) => i)
});
console.log('mem-fast %d', Math.ceil(anotherLeak.length * 1.5));
console.log('mem-fast %d', Math.ceil(anotherLeak.length * 2));
const end = process.hrtime(start);
reply(prettyHrtime(end));