File tree 3 files changed +7
-7
lines changed 3 files changed +7
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ echo "data payload for tests is: $(du -h data.json)"
7
7
8
8
trap " docker kill rie-bench" 1 2 3 6
9
9
bench () {
10
+ local handler_exe=$1
11
+ local entrypoint=$2
12
+ local image=$3
10
13
echo " -------------------------------------------------"
11
14
echo $@
12
15
echo " -------------------------------------------------"
13
- docker run --name rie-bench --platform $5 -- rm -d -p 9001:8080 -v " ${PWD} / $1 :/var/task/$1 " --entrypoint aws-lambda-rie $4 $2 $3
16
+ docker run --name rie-bench --rm -d -p 9001:8080 -v " ${handler_exe} :/var/task/bootstrap " --entrypoint aws-lambda-rie ${image} ${entrypoint} bootstrap
14
17
sleep 2
15
18
echo " ensuring healthy function before starting test"
16
19
curl -s -XPOST http://localhost:9001/2015-03-31/functions/function/invocations -d ' {"hello": "world"}' | jq
@@ -21,11 +24,8 @@ bench () {
21
24
22
25
GOOS=linux GOARCH=amd64 go build -o handler echo_handler.go
23
26
GOOS=linux GOARCH=amd64 go build -tags lambda.norpc -o handler_norpc echo_handler.go
24
- GOOS=linux GOARCH=arm64 go build -tags lambda.nprpc -o handler_arm echo_handler.go
25
27
ls -lah handler*
26
28
27
- bench handler_arm /var/task/handler_arm x public.ecr.aws/lambda/provided:al2 linux/arm64/v8
28
- bench handler /var/task/handler x public.ecr.aws/lambda/provided:al2 linux/amd64
29
- bench handler /var/task/handler x public.ecr.aws/lambda/provided:alami linux/amd64
30
- bench handler_norpc /var/runtime/bootstrap handler_norpc public.ecr.aws/lambda/go linux/amd64
31
- bench handler /var/runtime/bootstrap handler public.ecr.aws/lambda/go linux/amd64
29
+ bench " $( pwd) /handler_norpc" /var/task/bootstrap public.ecr.aws/lambda/provided:alami
30
+ bench " $( pwd) /handler_norpc" /var/runtime/bootstrap public.ecr.aws/lambda/go
31
+ bench " $( pwd) /handler" /var/runtime/bootstrap public.ecr.aws/lambda/go
File renamed without changes.
You can’t perform that action at this time.
0 commit comments