[issue20505] Remove resolution from selectors and granularity from asyncio

STINNER Victor report at bugs.python.org
Tue Feb 11 10:38:04 CET 2014


STINNER Victor added the comment:

Windows 7, HPET disabled:

asyncio: IocpProactor.select(100.0000 ms) took 99.871 ms (monotonic=109.000 ms, clock res=15.600 ms)
asyncio: IocpProactor.select(10.0000 ms) took 3.779 ms (monotonic=16.000 ms, clock res=15.600 ms)

asyncio: SelectSelector.select(100.0000 ms) took 99.608 ms (monotonic=109.000 ms, clock res=15.600 ms)
asyncio: SelectSelector.select(10.0000 ms) took 2.830 ms (monotonic=16.000 ms, clock res=15.600 ms)
asyncio: SelectSelector.select(1.0000 us) took 42.760 us (monotonic=0.000 us, clock res=15600.100 us)
asyncio: SelectSelector.select(0.0100 us) took 42.220 us (monotonic=0.000 us, clock res=15600.100 us)
asyncio: SelectSelector.select(0.0001 us) took 41.530 us (monotonic=0.000 us, clock res=15600.100 us)

If you only look at the monotonic time, we always get elapsed > timeout with IocpProactor, but not with SelectSelector.select().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20505>
_______________________________________


More information about the Python-bugs-list mailing list