Skip to content

Commit ccab390

Browse files
authored
chore(scripts): report bundler sizes for assorted app configurations (#7323)
1 parent d5523dc commit ccab390

18 files changed

+248
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ package-lock.json
3535
!serviceModels/logs
3636
dist
3737
tests/bundlers/dist-min
38+
tests/bundlers/dist-vite
3839

3940
.idea/
4041
*.iml

benchmark/bundlers/report.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
| Application | SDK Version | browser:Webpack | browser:Rollup | browser:EsBuild |
2+
| :---------------------------------------- | :---------- | :-------------- | :------------- | :-------------- |
3+
| lib-dynamodb-aggregate.ts | 3.883.0 | 211 kb | 204 kb | 232 kb |
4+
| multiple-sdk-clients.ts | 3.883.0 | 498 kb | 488 kb | 534 kb |
5+
| private-multiple-clients-micg.ts | 3.883.0 | 435 kb | 429 kb | 479 kb |
6+
| private-multiple-clients-schema.ts | 3.883.0 | 376 kb | 378 kb | 423 kb |
7+
| private-restjson-micg-aggregate.ts | 3.883.0 | 228 kb | 223 kb | 248 kb |
8+
| private-restjson-micg-single-command.ts | 3.883.0 | 125 kb | 120 kb | 140 kb |
9+
| private-restjson-schema-aggregate.ts | 3.883.0 | 213 kb | 210 kb | 233 kb |
10+
| private-restjson-schema-single-command.ts | 3.883.0 | 146 kb | 142 kb | 164 kb |
11+
| sdk-ec2-aggregate.ts | 3.883.0 | 1.159 mb | 1.105 mb | 1.152 mb |
12+
| sdk-s3-aggregate.ts | 3.883.0 | 376 kb | 367 kb | 399 kb |
13+
| sdk-s3-single-command.ts | 3.883.0 | 222 kb | 216 kb | 242 kb |
14+
| sdk-sagemaker-aggregate.ts | 3.883.0 | 462 kb | 445 kb | 482 kb |

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"scripts": {
88
"bootstrap": "yarn",
99
"bootstrap:ci": "yarn install --frozen-lockfile",
10+
"benchmark:bundlers": "node ./tests/bundlers/runner/run.mjs",
1011
"build:all": "node ./scripts/turbo build",
1112
"build:ci": "node ./scripts/turbo build",
1213
"build:clients:generic": "node ./scripts/turbo build -F=@aws-sdk/aws-echo-service",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { DynamoDBDocument } from "@aws-sdk/lib-dynamodb";
2+
export { DynamoDB } from "@aws-sdk/client-dynamodb";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export { S3 } from "@aws-sdk/client-s3";
2+
export { DynamoDB } from "@aws-sdk/client-dynamodb";
3+
export { SQS } from "@aws-sdk/client-sqs";
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export { RestJsonProtocol } from "@aws-sdk/aws-protocoltests-restjson";
2+
export { RestXmlProtocol } from "@aws-sdk/aws-protocoltests-restxml";
3+
export { JsonProtocol } from "@aws-sdk/aws-protocoltests-json";
4+
export { JSONRPC10 } from "@aws-sdk/aws-protocoltests-json-10";
5+
export { RpcV2Protocol } from "@aws-sdk/aws-protocoltests-smithy-rpcv2-cbor";
6+
export { QueryProtocol } from "@aws-sdk/aws-protocoltests-query";
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export { RestJsonProtocol } from "@aws-sdk/aws-protocoltests-restjson-schema";
2+
export { RestXmlProtocol } from "@aws-sdk/aws-protocoltests-restxml-schema";
3+
export { JsonProtocol } from "@aws-sdk/aws-protocoltests-json-schema";
4+
export { JSONRPC10 } from "@aws-sdk/aws-protocoltests-json-10-schema";
5+
export { RpcV2Protocol } from "@aws-sdk/aws-protocoltests-smithy-rpcv2-cbor-schema";
6+
export { QueryProtocol } from "@aws-sdk/aws-protocoltests-query-schema";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { RestJsonProtocol } from "@aws-sdk/aws-protocoltests-restjson";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { HttpStringPayloadCommand, RestJsonProtocolClient } from "@aws-sdk/aws-protocoltests-restjson";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { RestJsonProtocol } from "@aws-sdk/aws-protocoltests-restjson-schema";

0 commit comments

Comments
 (0)