Skip to content

Instantly share code, notes, and snippets.

@newswim
Forked from vicapow/56GB.js
Created November 5, 2015 04:50
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 newswim/4591407db968ddbeabc7 to your computer and use it in GitHub Desktop.
Save newswim/4591407db968ddbeabc7 to your computer and use it in GitHub Desktop.
Was I really just able to allocate 56GB of memory in Google chrome?
var x = [];
for (var i = 0; i < 56; i++) {
x.push(new Uint8Array(1024 * 1024 * 1024));
}
console.log(x.length);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment