Skip to content

Instantly share code, notes, and snippets.

@ThisIsMissEm
Forked from ry/slow.js
Created January 27, 2011 03:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
var fs = require('fs');
fs.unlinkSync('/tmp/__blah');
var s = fs.WriteStream("/tmp/__blah");
for (var i = 0; i < 1024 * 1024; i++) {
s.write("a");
}
s.end();
console.log("done");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment