my first thought is maybe nagle algorithm is on for one and off for the other. thats probably configurable somewhere. anyway i am purely speculating.
On Thu, Aug 24, 2023 at 3:46 AM 'AlexN' via grpc.io < grpc-io@googlegroups.com> wrote: > Hi, > > When looking at the QPS benchmarks > <https://grafana-dot-grpc-testing.appspot.com/?orgId=1&from=now-30d&to=now> > (and reproducing them) the performance gap between the C++ and Go is more > than x2 (Go is faster). The test scenario appears to be quite similar: > Streaming > secure throughput QPS (8 cores). > > I tried to look deeper into it and found that C++ server has lots of > outgoing small TCP messages (~100-200 bytes). These appear to take a > considerable amount of CPU time. When Go server was considered, the number > of small messages was just a bit higher than the number of large > (~1.5Kbytes) outgoing messages. > > I wonder if anyone has explored this and if there are any directions (or > maybe existing implementations) for improving the short message performance > of C++? > > Thanks, > > Alex > > -- > 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 grpc-io+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/d5c28277-3ee4-4fd4-bac3-1da9e2017f66n%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/d5c28277-3ee4-4fd4-bac3-1da9e2017f66n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAA-WHuki29ugwhPFkCWSFraZPTBeevcKpN683L3iJgm%2BWmcqXw%40mail.gmail.com.