Skip to content

Conversation

@chandra-siri
Copy link
Collaborator

@chandra-siri chandra-siri commented Jan 15, 2026

  • Add performance microbenchmarking suite for Writes
  • This compares Regional (Standard Storage) with Zonal (Rapid Storage) buckets.
  • Regional uses JSON wheres Zonal uses gRPC bidi

…e analysis

- Adjusted file size and rounds in config.yaml for better benchmarking accuracy.
- Enhanced download object tests in test_reads.py to include random chunk downloading.
- Refactored upload and download worker functions for improved clarity and performance.
…ersisted_size_sync to accept command-line arguments
- Introduced RandomBytesIO for generating random bytes on-the-fly, reducing memory usage during uploads.
- Updated upload logic in test_writes.py to utilize RandomBytesIO instead of os.urandom.
- Adjusted download logic in test_reads.py to correctly handle byte ranges.
- Cleaned up config.py and conftest.py by removing commented-out code and unnecessary lines.
- Minor adjustments in config_writes.yaml for clarity.
@chandra-siri chandra-siri changed the title Add writes benchmarking feat: Add micro-benchmarks for writes comparing standard (regional) vs rapid (zonal) buckets. Jan 15, 2026
@chandra-siri
Copy link
Collaborator Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a micro-benchmarking suite for GCS writes, comparing regional (JSON) and zonal (gRPC) buckets under various concurrency scenarios. The overall structure is well-organized, with separate files for configuration, parameters, and tests. My review focuses on improving the correctness of the benchmark measurements, enhancing code clarity and maintainability, and adhering to Python best practices. Key suggestions include optimizing the data generation process within the benchmark loop to prevent skewed results, improving docstrings for better readability, and refactoring for clearer code.

@chandra-siri chandra-siri marked this pull request as ready for review January 15, 2026 19:24
@chandra-siri chandra-siri requested review from a team as code owners January 15, 2026 19:24
jasha26
jasha26 previously approved these changes Jan 21, 2026
Base automatically changed from bench to main January 21, 2026 11:21
@chandra-siri chandra-siri dismissed jasha26’s stale review January 21, 2026 11:21

The base branch was changed.

@chandra-siri chandra-siri merged commit dbe9d8b into main Jan 21, 2026
18 checks passed
@chandra-siri chandra-siri deleted the bench_writes branch January 21, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/python-storage API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants