logoalt Hacker News

rfgplk • today at 7:58 AM • 1 reply • view on HN

Yep, me. In fact, I wrote a whole netstack in C++, meaning everything from opening sockets to the web server to the tls crypto code to the sse/middleware layer of the framework. Quite literally, there is _ZERO_ externally used third-party code anywhere in the netpath. Performance is amazing, I can serve effectively ~600k full HTTPS requests per second on a single Skylake core.


Replies

lukaslalinsky • today at 9:23 AM

How fast does it go when you do a few PostgreSQL queries per request?

Look at https://www.http-arena.com/. For raw throughput on keep-alive requests, low-level languages are going to win without a question. But once you put database roundtrip into the mix, the distance gets much smaller.

And I'm saying this as an author of another HTTP server in a low-level language.

➕ show 1 reply