4 ms·
Echo server benchmarks, io_uring vs epoll: https://github.com/frevib/io_uring-echo-server/blob/io-uring-op-provide-buffers/benchmarks/benchmarks.md https://gith
by frevib 6y ago
Echo server benchmarks, io_uring vs epoll: https://github.com/frevib/io_uring-echo-server/blob/io-uring-op-provide-buffers/benchmarks/benchmarks.md https://github.com/frevib/io_uring-echo-server/blob/io-uring...
- tele_ski 6y agoNice, reading through the epoll implementation shouldn't it re-register to make sure the send() call won't block? Looks like it only non-blocks on the accept socket and then a single read register
- frevib 6y agoCould elaborate on “re-register”? It does not do short writes, if that’s what you mean.
- tele_ski 6y agoNormally I'd expect an epoll implementation to epoll_ctl to make sure the socket can be written to without blocking. In this benchmark it probably makes no difference but I would think it would make the results a little more inline with a real applications usage of epoll.
- frevib 6y agoThis a bare minimal echo server for educational purposes. It is not inline with a real world event loop.
- tele_ski 6y agoYeah I understand that, but if you are going for identical performance characteristics of how epoll would normally be used then I would expect it to re-register. Thats all I was getting at.