TOC  Previous  Next

The epoll API

Why epoll is better


The following table compares poll(), select(), and epoll for monitoring different numbers (N) of file descriptors.

Number of descriptors
monitored (N)
poll() CPU
time (seconds)
select() CPU
time (seconds)
epoll CPU
time (seconds)
   10       1.12       1.28 0.65
  100      6.8      7.1 0.68
 1000  157  151 0.89
10000 1750 1087 0.97

(C) 2006, Michael Kerrisk