github.com/aavshr/aws-sdk-go@v1.41.3/awstesting/integration/performance/s3UploadManager/README.md (about)

     1  ## Performance Utility
     2  
     3  Uploads a file to a S3 bucket using the SDK's S3 upload manager. Allows passing
     4  in custom configuration for the HTTP client and SDK's Upload Manager behavior.
     5  
     6  ## Build
     7  ### Standalone
     8  ```sh
     9  go build -tags "integration perftest" -o s3UploadPerfGo ./awstesting/integration/performance/s3UploadManager
    10  ```
    11  ### Benchmarking
    12  ```sh
    13  go test -tags "integration perftest" -c -o s3UploadPerfGo ./awstesting/integration/performance/s3UploadManager
    14  ```
    15  
    16  ## Usage Example:
    17  ### Standalone
    18  ```sh
    19  AWS_REGION=us-west-2 AWS_PROFILE=aws-go-sdk-team-test ./s3UploadPerfGo \
    20  -bucket aws-sdk-go-data \
    21  -key 10GB.file \
    22  -file /tmp/10GB.file \
    23  -client.idle-conns 1000 \
    24  -client.idle-conns-host 300 \
    25  -sdk.concurrency 100 \
    26  -sdk.unsigned \
    27  -sdk.100-continue=false \
    28  -client.timeout.connect=1s \
    29  -client.timeout.response-header=1s
    30  ```
    31  
    32  ### Benchmarking
    33  ```sh
    34  AWS_REGION=us-west-2 AWS_PROFILE=aws-go-sdk-team-test ./s3UploadPerfGo \
    35  -test.bench=. \
    36  -test.benchmem \
    37  -test.benchtime 1x \
    38  -bucket aws-sdk-go-data \
    39  -client.idle-conns 1000 \
    40  -client.idle-conns-host 300 \
    41  -client.timeout.connect=1s \
    42  -client.timeout.response-header=1s
    43  ```