From 442c1ddef730a54e1f267503bdf30fed99ce5ede Mon Sep 17 00:00:00 2001 From: tormakris Date: Wed, 1 May 2019 00:35:15 +0200 Subject: [PATCH] restructure --- benchmark/benchmark.sh | 8 ++++---- benchmark/{ => data}/process.py | 0 benchmark/{ => data}/requirements.txt | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename benchmark/{ => data}/process.py (100%) rename benchmark/{ => data}/requirements.txt (100%) diff --git a/benchmark/benchmark.sh b/benchmark/benchmark.sh index 7a842fb..3338092 100644 --- a/benchmark/benchmark.sh +++ b/benchmark/benchmark.sh @@ -53,7 +53,7 @@ do now=$(date '+%Y-%m-%d-%H-%M') echo -e "Connections: $wave_connection" echo -e "Running" - hey -c $wave_connection -z $wave_time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./"$function"."$wave_connection"."$now".wave.csv + hey -c $wave_connection -z $wave_time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$wave_connection"."$now".wave.csv if $wave_dir_up then if [[ $wave_connection -lt $wave_max_conn ]] @@ -93,17 +93,17 @@ do if [[ $* = *"--wrk"* ]] then echo -e "wrk $datetime\n" - wrk -t$threads -c"$connection" -d"$time" -s"$function_friendly".wrk -H"Host: $function.kubeless" -H"Content-Type:application/json" --latency http://$kuberhost/"$function" > ./"$function"."$connection"."$time"."$datetime".wrk.txt 2>&1 + wrk -t$threads -c"$connection" -d"$time" -s"$function_friendly".wrk -H"Host: $function.kubeless" -H"Content-Type:application/json" --latency http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".wrk.txt 2>&1 fi if [[ $* = *"--hey"* ]] then echo -e "hey-summary $datetime\n" - hey -c "$connection" -z "$time" -m POST -host "$function.kubeless" -D "$function_firendly".body -T "application/json" http://$kuberhost/"$function" > ./"$function"."$connection"."$time"."$datetime".hey.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".hey.txt fi if [[ $* = *"--csv"* ]] then echo -e "hey-csv $datetime\n" - hey -c "$connection" -z "$time" -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./"$function"."$connection"."$time"."$datetime".csv + hey -c "$connection" -z "$time" -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".csv fi echo -e "Finished at $datetime" done diff --git a/benchmark/process.py b/benchmark/data/process.py similarity index 100% rename from benchmark/process.py rename to benchmark/data/process.py diff --git a/benchmark/requirements.txt b/benchmark/data/requirements.txt similarity index 100% rename from benchmark/requirements.txt rename to benchmark/data/requirements.txt