We have continuously running performance tests tracking gRPC master: https://performance-dot-grpc-testing.appspot.com/explore? dashboard=5760820306771968
These tests use small, simple messages. For C++ the latency is around 200us. As Koen noted, there is a higher first message latency, and that could explain the 2ms latency you have observed. Ken On Mon, Aug 8, 2016 at 2:50 PM, Koen De Keyser <[email protected]> wrote: > I have used a bidirectional, long-lived streaming RPC of grpc, over which > then messages are sent in both directions. In that case, the observed > latencies where lower than 2ms (I think I recall it was in the order of > hundred microseconds, but will need to double-check), over 40 Gbps > ethernet. This was using the C++ library, async implementation. > > This approach moves the connection and RPC setup cost out of the > individual latency of the messages. If you tested with standard single > request/response RPC's, that might explain the higher latency. Also, my > messages where rather simple, and I expect the protobuf serialization to be > quite fast. Larger messages will incur some latency due to the more complex > serialization. Maybe using Flatbuffers as the serialization layer could > help you out there, but I don't have any experience there. > > Koen > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/grpc-io/8195ab20-29a1-4e67-a7d7-f1d4a9575e10%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAGm2-Y6v_xTa%3DPWkwMMmj4jc1nbBAn2Fv%3D1eg--k8eeAadR5yQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
