rigtorp / ipc-bench

Latency benchmarks of Unix IPC mechanisms
MIT License
556 stars 165 forks source link

blocking read/write #21

Closed emailsters closed 1 year ago

emailsters commented 3 years ago

the test is using blocking API(read/write),what if using noblock?

rigtorp commented 3 years ago

No it's going to increase latency, since you would need 2 syscalls (epoll + read). Maybe io_uring would increase performance. The purpose of non-blocking operations using epoll/kqueue is to increase throughput by handling multiple sockets on a single thread.

On Wed, Sep 22, 2021 at 10:59 AM emailsters @.***> wrote:

the test is using blocking API(read/write),what if using noblock?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rigtorp/ipc-bench/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLO253ZUDHRQRYDESJCQLUDGLF3ANCNFSM5EQZQFOA .