[QUERY] Performance difference between UploadBlobAsync
and OpenWriteAsync
#43598
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Library name and version
Azure.Storage.Blobs 12.19.1
Query/Question
Hi, I am trying to figure out the reason behind the performance difference between
UploadBlobAsync
andOpenWriteAsync
methods.Here is the minimal test code that I have -
Both the ways to upload blobs use a file stream that reads from a locally present file (to make sure the incoming stream isn't involving any network I/O etc.) and upload it to a blob store container.
This program was run on an Azure VM (with release configuration built, if it matters) in the East US region, and it was pointed to a storage account in the East US region. The blob being uploaded was of size 256MBs. The output was -
Can you please help me understand why there's a significant difference in the two upload methods? I checked that if no
BlockBlobOpenWriteOptions
are given toOpenWriteAsync
, the defaultBufferSize
is 4MB. So not sure what else could be a contributing factor to the slowness ofOpenWriteAsync
.Environment
The text was updated successfully, but these errors were encountered: