Update benchmark.sh
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
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"
 | 
			
		||||
WRK_INSTALLED=$(which wrk)
 | 
			
		||||
@@ -32,11 +32,11 @@ do
 | 
			
		||||
    echo -e "\n"
 | 
			
		||||
    for connection in "${connections[@]}"
 | 
			
		||||
    do
 | 
			
		||||
        if [[ $connection -lt 21 ]]
 | 
			
		||||
        if [[ $connection -lt 41 ]]
 | 
			
		||||
        then
 | 
			
		||||
            threads=$(($connection-1))
 | 
			
		||||
        else
 | 
			
		||||
            threads=20
 | 
			
		||||
            threads=40
 | 
			
		||||
        fi
 | 
			
		||||
        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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user