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
We are comparing the download performance of the OCI Python SDK and boto3 (AWS SDK). For the same objects stored in an OCI bucket, we’ve observed that the OCI SDK is approximately 20% to 50% slower than boto3 when downloading to memory.
Environment details
oci
version: 2.111.0Issue
We are comparing the download performance of the OCI Python SDK and boto3 (AWS SDK). For the same objects stored in an OCI bucket, we’ve observed that the OCI SDK is approximately 20% to 50% slower than boto3 when downloading to memory.
Methods Tested with OCI SDK
response.data.content
:Get idea from this issue, this method is ~60% faster than method 1 but still ~20% slower than boto3:
Note: We tested various chunk sizes, but they did not yield further improvements.
boto3 Baseline Implementation
Performance Results
With
ThreadPoolExecutor(max_workers=16)
, I got following average throughput downloading 64MB x 1000 objects from the same OCI bucket to memory:get_object
: 9.8 Gbpsresponse.data.content
: 4.1 Gbpsresponse.data.raw.stream
: 6.8 GbpsThe gap remains consistent across multiple test runs, including various multithreaded and multiprocessed setups.
Questions
Thanks!
The text was updated successfully, but these errors were encountered: