mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
00cb0912ef
PR-URL: https://github.com/nodejs/node/pull/42471 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
10 lines
198 B
JavaScript
10 lines
198 B
JavaScript
let arr = new Array(300_000).fill('a');
|
|
|
|
for (let index = 0; index < arr.length; index++) {
|
|
arr[index] = Math.random();
|
|
}
|
|
|
|
arr = [];
|
|
// .gc() is called to generate a Mark-sweep event
|
|
global.gc();
|