mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
make fast leak linear
This commit is contained in:
parent
811b636a9f
commit
47d8576bbb
@ -19,10 +19,10 @@ module.exports = (server) => {
|
|||||||
const start = process.hrtime();
|
const start = process.hrtime();
|
||||||
|
|
||||||
anotherLeak.push({
|
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);
|
const end = process.hrtime(start);
|
||||||
reply(prettyHrtime(end));
|
reply(prettyHrtime(end));
|
||||||
|
Loading…
Reference in New Issue
Block a user