Skip to content

Instantly share code, notes, and snippets.

@tricknotes
Last active Dec 10, 2015
Embed
What would you like to do?
var Readable = require('stream').Readable;
var i, now, count = 1000000;
var source = Readable.toString().split('\n')[9];
now = Date.now();
for (i = 0; i < count; i++) {
new Readable();
}
console.log('* %s - %d ms', source, Date.now() - now);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment