Re:A HTTP Proxy Server in 20 Lines of node.js Code
by felixge on Wednesday April 28, 2010 @04:26PM
(#1302598)
You need to create a new client for each incoming request. In your code, you are actually queuing up all responses.
So your result is probably an order of magnitude off.
For kicks, here's my CoffeeScript/Node.js code I used. I did the benchmark with ab entirely on localhost. Normally that's not ideal, but it was enough to tell that this isn't as fast as I'd like.
http://gist.github.com/382372