Skip to content

Small project to compare S3 perfomance against Localstack, using different access approaches

License

Notifications You must be signed in to change notification settings

bolt-juri-gavshin/aws-sdk-v3-vs-v2-perf-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository to reproduce performance degradation using AWS-SDK V3 client-s3

The benchmark

The code compares performance of an operation (op), making 10 parallel invocations of headObject using S3 client against Localstack at localhost

  • sdk v2 - AWS-SDK v2.1662.0
  • sdk v3 http2 - AWS-SDK v3.635.0, using NodeHttp2Handler
  • sdk v3 - AWS-SDK v3.635.0, using NodeHttpHandler

Results

sdk v2 x 77.69 ops/sec ±3.54% (75 runs sampled)
sdk v3 http2 x 18.03 ops/sec ±4.84% (46 runs sampled)
sdk v3 x 62.72 ops/sec ±3.88% (76 runs sampled)
Fastest is sdk v2
- sdk v3 http2 is 4.31x slower
- sdk v3 is 1.24x slower

NodeJS (v20.14.0)

nvm install && nvm use

Setup (NPM install + localstack container with S3)

npm run setup

Start (script to clean up localstack bucket and run main.js)

npm run headObjectBenchmark

Clean (remove localstack container)

npm run clean

About

Small project to compare S3 perfomance against Localstack, using different access approaches

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published