Skip to content

test(pubsub): add throughput benchmark#5238

Merged
suzmue merged 8 commits intogoogleapis:mainfrom
suzmue:benchmark_publisher_pr
Apr 3, 2026
Merged

test(pubsub): add throughput benchmark#5238
suzmue merged 8 commits intogoogleapis:mainfrom
suzmue:benchmark_publisher_pr

Conversation

@suzmue
Copy link
Copy Markdown
Contributor

@suzmue suzmue commented Apr 1, 2026

Add a new throughput benchmark for measuring the performance of publish and subscribe operations. The benchmark is implemented as a single binary with subcommands for the publisher and subscriber, allowing for unified metric formatting and simplified execution.

A version of this was used to benchmark our libraries to validate acceptable performance.

For #3840

@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Apr 1, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.98%. Comparing base (27f04b8) to head (b7f3e72).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5238   +/-   ##
=======================================
  Coverage   97.98%   97.98%           
=======================================
  Files         215      215           
  Lines       44904    44904           
=======================================
  Hits        43999    43999           
  Misses        905      905           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suzmue suzmue force-pushed the benchmark_publisher_pr branch 2 times, most recently from 68f51a5 to fe81f81 Compare April 3, 2026 18:21
@suzmue suzmue marked this pull request as ready for review April 3, 2026 20:19
@suzmue suzmue requested a review from a team as a code owner April 3, 2026 20:19
@suzmue
Copy link
Copy Markdown
Contributor Author

suzmue commented Apr 3, 2026

I can split this into further if requested.

Copy link
Copy Markdown
Member

@dbolduc dbolduc left a comment

Choose a reason for hiding this comment

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

Thanks! This was super easy to follow. Great job.

Comment thread src/pubsub/benchmarks/throughput/src/args.rs
Comment thread src/pubsub/benchmarks/throughput/src/main.rs Outdated
Comment thread src/pubsub/benchmarks/throughput/src/publisher.rs Outdated
Comment thread src/pubsub/benchmarks/throughput/src/publisher.rs Outdated
Comment thread src/pubsub/benchmarks/throughput/src/publisher.rs Outdated
Comment thread src/pubsub/benchmarks/throughput/src/subscriber.rs Outdated
Comment thread src/pubsub/benchmarks/throughput/README.md Outdated
Comment thread src/pubsub/benchmarks/throughput/README.md
Comment thread src/pubsub/benchmarks/throughput/src/subscriber.rs Outdated
suzmue added 6 commits April 3, 2026 21:14
Add a new throughput benchmark for measuring the performance of publish and subscribe operations. The benchmark is implemented as a single binary with subcommands for the publisher and subscriber, allowing for unified metric formatting and simplified execution.

A version of this was used to benchmark our libraries to validate
acceptable performance.
@suzmue suzmue force-pushed the benchmark_publisher_pr branch from b5baa71 to cbd582b Compare April 3, 2026 21:38
@suzmue suzmue enabled auto-merge (squash) April 3, 2026 21:48
@suzmue suzmue disabled auto-merge April 3, 2026 21:50
@suzmue suzmue enabled auto-merge (squash) April 3, 2026 21:54
@suzmue suzmue merged commit e92b011 into googleapis:main Apr 3, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants