[issue23285] PEP 475 - EINTR handling
Ned Deily
report at bugs.python.org
Thu Jan 29 23:01:17 CET 2015
Ned Deily added the comment:
With eintr-2.diff, fast!:
$ time ./python ~/Projects/PyDev/active/dev/3x/source/Lib/test/eintrdata/eintr_tester.py
test_read (__main__.OSEINTRTest) ... ok
test_wait (__main__.OSEINTRTest) ... ok
test_wait3 (__main__.OSEINTRTest) ... ok
test_wait4 (__main__.OSEINTRTest) ... ok
test_waitpid (__main__.OSEINTRTest) ... ok
test_write (__main__.OSEINTRTest) ... ok
test_accept (__main__.SocketEINTRTest) ... ok
test_recv (__main__.SocketEINTRTest) ... ok
test_recvmsg (__main__.SocketEINTRTest) ... ok
test_send (__main__.SocketEINTRTest) ... ok
test_sendall (__main__.SocketEINTRTest) ... ok
test_sendmsg (__main__.SocketEINTRTest) ... ok
----------------------------------------------------------------------
Ran 12 tests in 7.652s
OK
real 0m7.959s
user 0m2.573s
sys 0m1.604s
Instrumented test_send, 3 socket.send calls, many socket.recv_into calls:
test_send (__main__.SocketEINTRTest) ... rd SO_RCVBUF default was 8192, wr SO_SNDBUF default was 8192
len(data) = 16777215
sent = 8192, total written = 8192
sent = 4440064, total written = 4448256
sent = 12328959, total written = 16777215
received = 8192, total read = 8192
received = 8192, total read = 16384
received = 8192, total read = 24576
[...]
received = 8192, total read = 16760832
received = 8192, total read = 16769024
received = 8191, total read = 16777215
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23285>
_______________________________________
More information about the Python-bugs-list
mailing list