-
-
Save bnoordhuis/c02d4187096a666a09ed 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 HTTPParser = process.binding('http_parser').HTTPParser; | |
var request_v = HTTPParser.REQUEST || 'request'; | |
var response_v = HTTPParser.RESPONSE || 'response'; | |
for (var i = 0; i < 2 * 1000 * 1000; ++i) { | |
var parser = new HTTPParser(request_v); | |
} | |
for (var i = 0; i < 2 * 1000 * 1000; ++i) { | |
var parser = new HTTPParser(response_v); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment