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
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
nvm install && nvm use
npm run setup
npm run headObjectBenchmark
npm run clean