ipc-bench icon indicating copy to clipboard operation
ipc-bench copied to clipboard

blocking read/write

Open emailsters opened this issue 4 years ago • 1 comments

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

emailsters avatar Sep 22 '21 08:09 emailsters

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 .

rigtorp avatar Sep 22 '21 11:09 rigtorp