-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbenchmark-2-function.sh
executable file
·22 lines (18 loc) · 1.4 KB
/
benchmark-2-function.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -e
# PHP functions
for value in {1..500}
do
aws lambda invoke --invocation-type RequestResponse --region us-east-2 --function-name bref2-bench-function-dev-128 /dev/null > /dev/null &
aws lambda invoke --invocation-type RequestResponse --region us-east-2 --function-name bref2-bench-function-dev-512 /dev/null > /dev/null &
aws lambda invoke --invocation-type RequestResponse --region us-east-2 --function-name bref2-bench-function-dev-1024 /dev/null > /dev/null &
aws lambda invoke --invocation-type RequestResponse --region us-east-2 --function-name bref2-bench-function-dev-1769 /dev/null > /dev/null &
aws lambda invoke --invocation-type RequestResponse --region us-east-2 --function-name bref2-bench-function-dev-1024-container /dev/null > /dev/null &
wait
aws lambda invoke --invocation-type RequestResponse --region us-east-2 --function-name bref2-bench-function-dev-128-arm /dev/null > /dev/null &
aws lambda invoke --invocation-type RequestResponse --region us-east-2 --function-name bref2-bench-function-dev-512-arm /dev/null > /dev/null &
aws lambda invoke --invocation-type RequestResponse --region us-east-2 --function-name bref2-bench-function-dev-1024-arm /dev/null > /dev/null &
aws lambda invoke --invocation-type RequestResponse --region us-east-2 --function-name bref2-bench-function-dev-1769-arm /dev/null > /dev/null &
wait
sleep 1
done