-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix and expand benchmark test
- Loading branch information
sam
committed
Jan 17, 2023
1 parent
7f85e18
commit 89f4b02
Showing
7 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ node_modules/ | |
sdk.generated.ts | ||
.bundle | ||
*.tgz | ||
cdk.out | ||
cdk.out | ||
stats.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { DynamoDB } from "@aws-sdk/client-dynamodb"; | ||
|
||
const client = new DynamoDB({}); | ||
|
||
const TableName = process.env.TABLE_NAME!; | ||
|
||
export async function handler() { | ||
await client.putItem({ | ||
TableName, | ||
Item: { | ||
pk: { | ||
S: "pk", | ||
}, | ||
prop: { | ||
S: "value", | ||
}, | ||
}, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mkdir .bundle | ||
|
||
npx esbuild ./src/index.ts --platform=node --bundle --outfile=.bundle/index.js --metafile=.bundle/meta.json | ||
npx esbuild ./src/index.ts --platform=node --bundle --outfile=.bundle/index.js --metafile=.bundle/meta.json --external:@aws-sdk/* --minify | ||
|
||
npx esbuild-visualizer --metadata .bundle/meta.json --open |