How can I measure the performance and TCP RTT of my server code?

后端 未结 5 874

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

5条回答
  •  旧时难觅i
    2021-01-13 06:03

    You can always stick a shell loop around a program like iperf. Also, assuming iperf can read from a file (thus stdin) or programs like ttcp, could allow a shell loop catting a file N times into iperf/ttcp.

    If you want a program which sends a file, waits for your binary response, and then sends another copy of the file, you probably are going to need to code that yourself.

提交回复
热议问题