Last active
December 10, 2015 05:48
-
-
Save tricknotes/4389641 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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