Author vstinner
Recipients gvanrossum, neologix, python-dev, vstinner
Date 2014-02-11.09:33:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392111230.45.0.385932116629.issue20505@psf.upfronthosting.co.za>
In-reply-to
Content
More debug traces, Windows 7 with HPET enabled:

asyncio: IocpProactor.select(10.0000 ms) took 9.486 ms (monotonic=0.000 ms, clock res=15.600 ms)
asyncio: IocpProactor.select(0.0010 ms) took 0.942 ms (monotonic=0.000 ms, clock  res=15.600 ms)
asyncio: IocpProactor.select(0.0000 ms) took 0.553 ms (monotonic=0.000 ms, clock res=15.600 ms)
asyncio: IocpProactor.select(0.0000 ms) took 0.517 ms (monotonic=0.000 ms, clock res=15.600 ms)

asyncio: SelectSelector.select(0.1000 ms) took 2.276 ms (monotonic=0.000 ms, clock res=15.600 ms)
asyncio: SelectSelector.select(1.0000 us) took 30.810 us (monotonic=0.000 us, clock res=15600.100 us)
asyncio: SelectSelector.select(0.0100 us) took 30.350 us (monotonic=0.000 us, clock res=15600.100 us)
asyncio: SelectSelector.select(0.0001 us) took 28.930 us (monotonic=0.000 us, clock res=15600.100 us)

Note: IocpProactor.select() rounds the timeout aways from zero with a resolution of 1 ms, whereas SelectSelector.select() rounds towards zero. It may explain why IocpSelector sleeps at least 500 us, whereas SelectSelector sleeps sometimes 30 us.
History
Date User Action Args
2014-02-11 09:33:50vstinnersetrecipients: + vstinner, gvanrossum, neologix, python-dev
2014-02-11 09:33:50vstinnersetmessageid: <1392111230.45.0.385932116629.issue20505@psf.upfronthosting.co.za>
2014-02-11 09:33:50vstinnerlinkissue20505 messages
2014-02-11 09:33:49vstinnercreate