Closed auxten closed 9 years ago
I appreciate this contribution! However I will not merge this. The goal of this tool is to measure the latency of different low level IPC messaging transports. It is well known that there is a trade off between latency and throughput. That's why you can test both latency and throughput with different message sizes and decide for yourself. By removing TCP_NODELAY you effectively make the message size for TCP equal to MTU where as the original code makes the effective message size equal to MIN(MTU, message size).
throughput&QPS UDS : TCP : TCP_NODELAY = 6.16 : 2.39 : 1