gRPC slower as iPerf benchmark

92 views
Skip to first unread message

Kevin Mayrhofer

unread,
Feb 23, 2022, 6:28:03 AM2/23/22
to grpc.io
Hi, I started using gRPC in a C++ project some time ago. Now I have to send 13 MB of data. And that seemed to be slow for me. So I created a new project with a really simple proto file that only sends a 13 MB array via a synchronous gRPC call. I did the same thing with iPerf. Always over localhost. Now, when I look at Wireshark, it seems like iPerf3 sends the data in about 13ms (from packet 16-246) and gRPC takes about 47ms (from packet 0-179).
I get similar results if i repeat the test. Seemed weird to me, but I'm neither a gRPC nor a Wireshark expert, so maybe I'm missing something.

veb...@google.com

unread,
May 26, 2022, 7:34:36 PM5/26/22
to grpc.io
Hi Kevin, performance depends on how you organize your client and backend. https://grpc.io/docs/guides/performance/ would be a good starting point to get better performance.
Also gRPC has a flow control starting from small size of window so it usually takes some time to get the maximum throughput.

Reply all
Reply to author
Forward
0 new messages