|
|
About ::
TODO ::
Blog ::
RSS ::
Old blog ::
Projects ::
GIT ::
Gallery ::
Notes
Thu, 09 Nov 2006
Kevent pipe benchmark.
Using the same benchmark created by Eric Dumazet to test
epoll, which I ported to kevent, it is possible
to test unix sockets, inet sockets and pipes.
Application has additional posix thread, which writes into number
of preallocated sockets or pipes, main process reads from appropriate pairs.
Each successfull read is counted as event.
Here is pipe result with kevent_pipe kernel kevent part with
2000 pipes:
epoll (edge-triggered): 248408 events/sec
kevent (edge-triggered): 269282 events/sec
Busy reading loop: 269519 events/sec
Kevent is definitely a winner with extremely small overhead.
/devel/kevent :: Link / Comments ()
|