Skip to content

Instantly share code, notes, and snippets.

@tjfontaine
Created February 14, 2014 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjfontaine/8994371 to your computer and use it in GitHub Desktop.
Save tjfontaine/8994371 to your computer and use it in GitHub Desktop.
// --max-old-space-size=4095
var bigdata = [],
iterations = 0;
function addData() {
iterations++;
if (iterations % 10 == 0)
console.log(iterations, bigdata.length, process.memoryUsage());
for (var i = 0; i < 1e5; i++) {
bigdata.push({});
}
return setTimeout(function() { addData(); }, 1);
}
addData();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment