Skip to content
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

contrib/google.golang.org/grpc: benchmark for unary interceptor #1133

Merged
merged 3 commits into from
Jan 26, 2022

Conversation

evanj
Copy link
Contributor

@evanj evanj commented Jan 19, 2022

This benchmark attempts calls the gRPC interceptor with a few
different set of inputs, to try and measure the current overhead of
this operation. If this looks good, the goal would be to use this to
confirm that some small tweaks actually have the desired effect.

This was motivated when I noticed that the Datadog gRPC interceptor
is about 0.5% of total CPU time, and about 0.4% of all allocations
in one production application, as measured by the Datadog continuous
profiler. I think there are a few easy small wins that are possible.
I want to make sure we can measure the impact of these changes.

@evanj evanj requested a review from a team January 19, 2022 20:15
This benchmark attempts calls the gRPC interceptor with a few
different set of inputs, to try and measure the current overhead of
this operation. If this looks good, the goal would be to use this to
confirm that some small tweaks actually have the desired effect.

This was motivated when I noticed that the Datadog gRPC interceptor
is about 0.5% of total CPU time, and about 0.4% of all allocations
in one production application, as measured by the Datadog continuous
profiler. I think there are a few easy small wins that are possible.
I want to make sure we can measure the impact of these changes.
@evanj evanj force-pushed the evan.jones/grpc-benchmark-unary branch from 1004870 to b7d3b05 Compare January 19, 2022 20:15
Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Many thanks Evan!

@gbbr gbbr added this to the 1.36.0 milestone Jan 20, 2022
@Julio-Guerra
Copy link
Contributor

Are we good to merge @evanj ?

@Julio-Guerra Julio-Guerra modified the milestones: 1.36.0, 1.37.0 Jan 25, 2022
@evanj
Copy link
Contributor Author

evanj commented Jan 25, 2022

Yes, as far I know? This is a test-only change. I do not have permission to merge changes in this repository, so you'll have to do it for me. Thanks!

@felixge felixge merged commit dcf8af1 into v1 Jan 26, 2022
@felixge felixge deleted the evan.jones/grpc-benchmark-unary branch January 26, 2022 10:20
@felixge
Copy link
Member

felixge commented Jan 26, 2022

Thanks for this @evanj !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants