squeaky-pl / japronto

Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
MIT License
8.61k stars 581 forks source link

Equalent go benchmark #11

Closed heppu closed 7 years ago

heppu commented 7 years ago

The header setting thing only slows hello function and actually does nothing. Also the is no need to declare those temporary text and status variables on every request.

squeaky-pl commented 7 years ago

I updated the article in two plaes with the following text:

As user @heppu points out Go’s stdlib HTTP server can be 12% faster than the graph shows when written more carefully. Also there is the awesome fasthttp server for Go that apparently is only 18% slower than Japronto in this particular benchmark. Awesome! For details see https://github.com/squeaky-pl/japronto/pull/12 and https://github.com/squeaky-pl/japronto/pull/14