rigtorp / ipc-bench

Latency benchmarks of Unix IPC mechanisms
MIT License
556 stars 165 forks source link

add tcp_thr_nodelay #3

Closed auxten closed 9 years ago

auxten commented 9 years ago

throughput&QPS UDS : TCP : TCP_NODELAY = 6.16 : 2.39 : 1

rigtorp commented 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).