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

Allocation counting tests for full RPC flows #1155

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Apr 1, 2021

Motivation:

Now that we have an allocation counting test framework we should add
tests to it!

Modifications:

  • Add some common boilerplate for making an echo server and client
  • Add an allocation test for doing 1000 unary RPCs sequentially
  • Add allocation tests for doing 1000 bidi streaming RPCs sequentially,
    one where each RPC sends 1 request and another where each RPC sends 10
    request.

Result:

More test coverage for allocations.

@glbrntt glbrntt added the semver/none No version bump required. label Apr 1, 2021
@glbrntt glbrntt requested a review from Lukasa April 1, 2021 09:44
@glbrntt glbrntt force-pushed the gb-alloc-test-full-rpc branch from 66e61f2 to aab291e Compare April 1, 2021 09:49
Copy link
Contributor

@weissi weissi left a comment

Choose a reason for hiding this comment

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

🎉

@glbrntt
Copy link
Collaborator Author

glbrntt commented Apr 1, 2021

Hmm test_bidi_1k_rpcs_10_requests is pretty unstable, the range is something like 20,000 allocs (usually around 600,000) 👀

@glbrntt glbrntt force-pushed the gb-alloc-test-full-rpc branch 2 times, most recently from e497af7 to ced9be9 Compare April 1, 2021 15:34
Motivation:

Now that we have an allocation counting test framework we should add
tests to it!

Modifications:

- Add some common boilerplate for making an echo server and client
- Add an allocation test for doing 1000 unary RPCs sequentially
- Add allocation tests for doing 1000 bidi streaming RPCs sequentially,
  one where each RPC sends 1 request and another where each RPC sends 10
  request.

Result:

More test coverage for allocations.
@glbrntt glbrntt force-pushed the gb-alloc-test-full-rpc branch from ced9be9 to 1dc0aef Compare April 1, 2021 16:17
@glbrntt glbrntt merged commit fa27350 into grpc:main Apr 1, 2021
@glbrntt glbrntt deleted the gb-alloc-test-full-rpc branch April 1, 2021 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants