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

后端 未结 5 884

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条回答
  •  死守一世寂寞
    2021-01-13 05:44

    As a very simple highlevel tool netcat comes to mind ... so something like time (nc hostname 1234 < input.binary | head -c 100) assuming the response is 100 bytes long.

提交回复
热议问题