Update benchmark.sh
This commit is contained in:
parent
b788fc0f2f
commit
9e8c8688b0
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
functions=(hello matrix)
|
functions=(hello matrix)
|
||||||
|
|
||||||
connections=(2 5 10 20 21 50 100 200 400 500 1000)
|
connections=(2 5 10 20 50 100 200 400 500 1000)
|
||||||
|
|
||||||
kuberhost="node1:32764"
|
kuberhost="node1:32764"
|
||||||
WRK_INSTALLED=$(which wrk)
|
WRK_INSTALLED=$(which wrk)
|
||||||
@ -32,11 +32,11 @@ do
|
|||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
for connection in "${connections[@]}"
|
for connection in "${connections[@]}"
|
||||||
do
|
do
|
||||||
if [[ $connection -lt 21 ]]
|
if [[ $connection -lt 41 ]]
|
||||||
then
|
then
|
||||||
threads=$(($connection-1))
|
threads=$(($connection-1))
|
||||||
else
|
else
|
||||||
threads=20
|
threads=40
|
||||||
fi
|
fi
|
||||||
echo -e "Threads: $threads Connections $connection\n"
|
echo -e "Threads: $threads Connections $connection\n"
|
||||||
wrk -t$threads -d1m -c$connection -H"Host: $function.kubeless" -H"Content-Type:application/json" --latency http://$kuberhost/$function > ./$function.$connection.txt 2>&1
|
wrk -t$threads -d1m -c$connection -H"Host: $function.kubeless" -H"Content-Type:application/json" --latency http://$kuberhost/$function > ./$function.$connection.txt 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user