Skip to content

Instantly share code, notes, and snippets.

@ThisIsMissEm
Forked from ry/slow.js
Created Jan 27, 2011
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