You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://github.com/plutov/benchmark-grpc-protobuf-vs-http-json is a benchmark repo about grpc-protobuf(Unary) vs http-json, it seems grpc-go slow than net/http with default setting in latest benchmark result at 2019.
i try to set InitialWindowSize=1<<30,InitialConnWindowSize=1<<30,WriteBufferSize=256 * 1024, ReadBufferSize=256 * 1024 both client and server, then grpc-go similar than net/http at 1 connection 1 concurrency regular scenario.
related slow than net/http issue at 2015: #89#108
related issue about window size adjust. #1043
related issue about buffer size adjust.#1569
related issue about performance. #586
The text was updated successfully, but these errors were encountered:
@hanjm the numbers you are showing don't appear to be significantly slower. Can you explain more what the numbers mean and how you are interpreting them? Also, running more iterations may show different results, or more operations per iteration may be helpful in reducing variance.
Unary gRPC why slow than HTTP/1, it just counterintuitive and confusing, how to explain it?
I can't explain this without fully understanding how these particular benchmarks work. This is a bit of an apples-to-oranges comparison, regardless, since gRPC has more features than HTTP/1+JSON (e.g. bi-directional streaming, multiple streams over a single connection, flow control). These features do have some cost, although we expect it to be a small one.
If you're interested in looking more, we have a benchmark directory in gRPC-go that contains a binary capable of running benchmarks with various parameters, which is what we use for our testing. There are also regular benchmark results available through our website. This link will take you directly there: https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5636470266134528.
https://github.com/plutov/benchmark-grpc-protobuf-vs-http-json is a benchmark repo about grpc-protobuf(Unary) vs http-json, it seems grpc-go slow than net/http with default setting in latest benchmark result at 2019.
i try to set InitialWindowSize=1<<30,InitialConnWindowSize=1<<30,WriteBufferSize=256 * 1024, ReadBufferSize=256 * 1024 both client and server, then grpc-go similar than net/http at 1 connection 1 concurrency regular scenario.
related slow than net/http issue at 2015: #89 #108
related issue about window size adjust. #1043
related issue about buffer size adjust.#1569
related issue about performance. #586
The text was updated successfully, but these errors were encountered: