This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rosslagerwall
Recipients christian.heimes, felipecruz, giampaolo.rodola, gvanrossum, neologix, pitrou, rosslagerwall
Date 2013-01-04.19:53:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357329187.81.0.925627037297.issue16853@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-01-04 19:53:07rosslagerwallsetrecipients: + rosslagerwall, gvanrossum, pitrou, giampaolo.rodola, christian.heimes, neologix, felipecruz
2013-01-04 19:53:07rosslagerwallsetmessageid: <1357329187.81.0.925627037297.issue16853@psf.upfronthosting.co.za>
2013-01-04 19:53:07rosslagerwalllinkissue16853 messages
2013-01-04 19:53:07rosslagerwallcreate