How can I measure the performance and TCP RTT of my server code?
问题 I created a basic TCP server that reads incoming binary data in protocol buffer format, and writes a binary msg as response. I would like to benchmark the the roundtrip time. I tried iperf, but could not make it send the same input file multiple times. Is there another benchmark tool than can send a binary input file repeatedly? 回答1: If you have access to a linux or unix machine 1 , you should use tcptrace. All you need to do is loop through your binary traffic test while capturing with