Message179074
Interesting benchmark. There is no gain for epoll with a large number of
ready fds (as expected) but at least it is no worse than poll. Poll offers
a large improvement on select, in this case.
$ ./python selector_bench.py -r 2 -m 1000 -t pipe
Trying with 2 ready FDs out of 1000, type pipe
<class 'select.EpollSelector'>
0.004317363000154728
<class 'select.PollSelector'>
0.08897221900042496
<class 'select.SelectSelector'>
0.1558117479999055
$ ./python selector_bench.py -r 100 -m 1000 -t pipe
Trying with 100 ready FDs out of 1000, type pipe
<class 'select.EpollSelector'>
0.11067074099992169
<class 'select.PollSelector'>
0.18777027299984184
<class 'select.SelectSelector'>
0.30157805000089866
$ ./python selector_bench.py -r 1000 -m 1000 -t pipe
Trying with 1000 ready FDs out of 1000, type pipe
<class 'select.EpollSelector'>
1.08963231099915
<class 'select.PollSelector'>
1.111169247998987
<class 'select.SelectSelector'>
8.283167362000313 |
|
Date |
User |
Action |
Args |
2013-01-04 19:53:07 | rosslagerwall | set | recipients:
+ rosslagerwall, gvanrossum, pitrou, giampaolo.rodola, christian.heimes, neologix, felipecruz |
2013-01-04 19:53:07 | rosslagerwall | set | messageid: <1357329187.81.0.925627037297.issue16853@psf.upfronthosting.co.za> |
2013-01-04 19:53:07 | rosslagerwall | link | issue16853 messages |
2013-01-04 19:53:07 | rosslagerwall | create | |
|