New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is Grpc.AspNetCore slower than WebApi and Grpc.Core? #628
Comments
I'll look into your results when I have some time. Our benchmarks are here: https://msit.powerbi.com/view?r=eyJrIjoiYTZjMTk3YjEtMzQ3Yi00NTI5LTg5ZDItNmUyMGRlOTkwMGRlIiwidCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsImMiOjV9 Yellow is Grpc.AspNetCore, blue is Grpc.Core |
My guess would be that you haven't disabled logging? |
Do you mean to disable the default log? |
These are the results from perf/benchmarkapps/grpcaspnetcoreserver:
All of these are against the GrpcRaw = using raw
|
Dear all:
I am sorry to ask such a question because of my ignorance.
But I did a test to implement a
SayHi
service usingGrpc.AspNetCore
,WebApi
,Grcp.Core
, I tested it multiple times with loop calls and parallel calls. Then I found thatGrpc.AspNetCore
is slower thanWebApi
, andWebApi
is slower thanGrcp.Core
. They are all based on.netcore3.0,
And run in the same configuration of the Docker container, of course, the results of my local development environment test is the same.This is my test program
I am a beginner who loves gRPC. I hope someone can answer my confusion. Thanks very much!
The following is my test results:
1000 For loop calls, inside the loop create a new connection each time
1000 For loop calls, only create a connection outside the loop
1000 Parallel parallel calls, here only tested every time a new connection is created
The text was updated successfully, but these errors were encountered: