Skip to content

Instantly share code, notes, and snippets.

@ThisIsMissEm
Forked from ry/slow.js
Created January 27, 2011 03:52
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 ThisIsMissEm/798037 to your computer and use it in GitHub Desktop.
Save ThisIsMissEm/798037 to your computer and use it in GitHub Desktop.
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