dom96 / httpbeast

A highly performant, multi-threaded HTTP 1.1 server written in Nim.
MIT License
442 stars 51 forks source link

Disable Nagle Algorithm #60

Closed kubo39 closed 2 years ago

dom96 commented 2 years ago

Interesting, two questions:

kubo39 commented 2 years ago

Is this what benchmarks typically do in TechEmpower?

In addition, Nginx enables this option by default. https://nginx.org/en/docs/http/ngx_http_core_module.html#tcp_nodelay

Did you do any testing to see this benchmarking better?

Not yet(stable benchmark is so hard!). However, 7-8 years ago, I tried to optimze nginx.conf at work and it's always good to turn tcp_nodelay on, which is enabled by default.