benchmark fix
This commit is contained in:
		@@ -112,14 +112,14 @@ do
 | 
				
			|||||||
                        then
 | 
					                        then
 | 
				
			||||||
                            if [[ $* = *"--loadtest"* ]]
 | 
					                            if [[ $* = *"--loadtest"* ]]
 | 
				
			||||||
                            then
 | 
					                            then
 | 
				
			||||||
                                loadtest -H Host: $function.kubeless --rps $leadtest_rps -c $connection -t $time -p "$function_firendly".body http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".txt
 | 
					                                loadtest -H "Host: $function.kubeless" --rps $leadtest_rps -c $connection -t $time -p "$function_firendly".body http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".txt
 | 
				
			||||||
                            else
 | 
					                            else
 | 
				
			||||||
                                hey -c "$connection" -z "$time" -m POST -host "$function.kubeless" -D "$function_firendly".body  -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".txt
 | 
					                                hey -c "$connection" -z "$time" -m POST -host "$function.kubeless" -D "$function_firendly".body  -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".txt
 | 
				
			||||||
                            fi
 | 
					                            fi
 | 
				
			||||||
                        else
 | 
					                        else
 | 
				
			||||||
                        if [[ $* = *"--loadtest"* ]]
 | 
					                        if [[ $* = *"--loadtest"* ]]
 | 
				
			||||||
                            then
 | 
					                            then
 | 
				
			||||||
                                loadtest -H Host: $function.default.example.com --rps $leadtest_rps -c $connection -t $time http://$kuberhost/ > ./data/"$function"."$connection"."$time"."$datetime".txt
 | 
					                                loadtest -H "Host: $function.default.example.com" --rps $leadtest_rps -c $connection -t $time http://$kuberhost/ > ./data/"$function"."$connection"."$time"."$datetime".txt
 | 
				
			||||||
                            else
 | 
					                            else
 | 
				
			||||||
                                hey -c "$connection" -z "$time" -m POST -host "$function.default.example.com" http://$kuberhost/ > ./data/"$function"."$connection"."$time"."$datetime".txt
 | 
					                                hey -c "$connection" -z "$time" -m POST -host "$function.default.example.com" http://$kuberhost/ > ./data/"$function"."$connection"."$time"."$datetime".txt
 | 
				
			||||||
                            fi
 | 
					                            fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user