Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Python has benefited from years of throughout optimization of the language for real-world use. Go is still under heavy development and is not as optimized as other languages that have devs focused on optimization (that explains why node.js is a bit faster than Go for handling HTTP requests at the moment).


  > (that explains why node.js is a bit faster than Go for handling HTTP requests at the moment)
Pretty sure node's http parsing is handled by http-parser[1], which is written in C (originally pulled from nginx as I recall).

Go's http parser is written in Go.

[1]: https://github.com/joyent/http-parser


If I remember correctly the initial versions of node had the ragel-based http parser from mongrel but then ryan rewrote it. http-parser is hand-written.


maybe not entirely hand written? source[1]

[1]: https://github.com/joyent/http-parser/blob/master/LICENSE-MI...


    > (that explains why node.js is a bit faster than Go for handling HTTP requests at the moment)
I'm not sure that is true any more:

http://www.techempower.com/benchmarks/#section=data-r8&hw=i7...

At any rate, "handling HTTP requests" can't possibly be your bottleneck, given network communication, serialization, etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: