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

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