Last active
August 15, 2016 22:51
-
-
Save RubenVerborgh/a9240a4a0db280f597a16fc3ed5411bd 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 i = 2e5, start = new Date(); | |
void setImmediate(function next(i) { | |
if (i > 0) | |
setImmediate(next, i - 1); | |
else | |
console.log((new Date() - start) / 1000); | |
}, i); |
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
global.setImmediate = null; | |
require('./setImmediate'); | |
var i = 3e6; | |
setImmediate(function next(i) { | |
if (i > 0) | |
setImmediate(next, i - 1); | |
}, i); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment