You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
When comparing download performance between Google Cloud Storage Python Client and boto3 (AWS SDK), we observed that GCS client is significantly slower (about 50% slower) than boto3 for downloading the same objects stored in a GCS bucket.
Environment details
google-cloud-storageversion: 2.19.0 & 3.1.0Steps to reproduce
When comparing download performance between Google Cloud Storage Python Client and boto3 (AWS SDK), we observed that GCS client is significantly slower (about 50% slower) than boto3 for downloading the same objects stored in a GCS bucket.
GCS Client Implementation (Two methods tested)
blob.download_as_bytes():blob.open()(10%-30% faster than method 1, but still 50% slower than boto3):boto3 Implementation
Performance Results
With
ThreadPoolExecutor(max_workers=16), I got following average throughput downloading 64MB x 1000 objects from GCS bucket to memory:get_object: 12 Gbpsdownload_as_bytes(): 3.2 Gbps in 2.19.0 & 4.2 Gbps in 3.1.0blob.open(): 4.5 Gbps in both 2.19.0 & 3.1.0Questions
Additional Context
raw_download=Trueblob.open("rb", chunk_size=xxx)Benchmarking scripts are available at https://github.com/dreamtalen/boto3-benchmark/tree/main/google-cloud-storage
Thanks!