Slide 21
Slide 21 text
strace -eT php examples/client.php
socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 3 <0.000014>
connect(3, {}, 16) = 0 <0.000077>
sendto(3, {data}, 31, 0, NULL, 0) = 31 <0.000027>
sendto(3, {data}, 25, 0, NULL, 0) = 25 <0.000020>
recvfrom(3, {data}, 17, MSG_WAITALL, NULL, NULL) = 17 <0.000023>
recvfrom(3, {data}, 14, MSG_WAITALL, NULL, NULL) = 14 <0.000022>
recvfrom(3, {data}, 17, MSG_WAITALL, NULL, NULL) = 17 <0.000009>
recvfrom(3, {data}, 16, MSG_WAITALL, NULL, NULL) = 16 <0.000006>
Цена одного syscall