This is an automated email from the ASF dual-hosted git repository. dakaikang pushed a commit to branch hotstuff-1 in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git
commit 2f092b4311912201aa259f700cf7a7494d99b1e0 Author: Ubuntu <[email protected]> AuthorDate: Sat Nov 29 09:42:06 2025 +0000 automated scripts --- scripts/deploy/all_rollback_experiment.sh | 37 +++++++++++----------- .../deploy/latex_plot_data/rollback_latency.data | 10 +++--- .../latex_plot_data/rollback_latency.data\303\247" | 6 ---- scripts/deploy/multiply_by_1000.sh | 4 --- 4 files changed, 24 insertions(+), 33 deletions(-) diff --git a/scripts/deploy/all_rollback_experiment.sh b/scripts/deploy/all_rollback_experiment.sh index d1a879f3..b36cec08 100755 --- a/scripts/deploy/all_rollback_experiment.sh +++ b/scripts/deploy/all_rollback_experiment.sh @@ -3,29 +3,29 @@ protocols=("HS-1" "HS-1-SLOT") delays=(10 100) num_slows=(0 1 4 7 10) -./start_us_east_1_instances.sh 31 +# ./start_us_east_1_instances.sh 31 # sleep 30 -rm -rf ./plot_data/rollback_throughput -rm -rf ./plot_data/rollback_latency -mkdir -p ./plot_data/rollback_throughput -mkdir -p ./plot_data/rollback_latency +# rm -rf ./plot_data/rollback_throughput +# rm -rf ./plot_data/rollback_latency +# mkdir -p ./plot_data/rollback_throughput +# mkdir -p ./plot_data/rollback_latency -for delay in "${delays[@]}"; do - for num_slow in "${num_slows[@]}"; do - for protocol in "${protocols[@]}"; do - if [[ "$protocol" != "HS-1-SLOT" && "$delay" != "100" ]]; then - continue - fi - ./rollback_experiment.sh ${protocol} ${num_slow} ${delay} - tail -n 2 results.log | head -n 1 > ./plot_data/rollback_throughput/${protocol}_${num_slow}_${delay}.data - tail -n 1 results.log > ./plot_data/rollback_latency/${protocol}_${num_slow}_${delay}.data - done - done -done +# for delay in "${delays[@]}"; do +# for num_slow in "${num_slows[@]}"; do +# for protocol in "${protocols[@]}"; do +# if [[ "$protocol" != "HS-1-SLOT" && "$delay" != "100" ]]; then +# continue +# fi +# ./rollback_experiment.sh ${protocol} ${num_slow} ${delay} +# tail -n 2 results.log | head -n 1 > ./plot_data/rollback_throughput/${protocol}_${num_slow}_${delay}.data +# tail -n 1 results.log > ./plot_data/rollback_latency/${protocol}_${num_slow}_${delay}.data +# done +# done +# done -./stop_us_east_1_instances.sh +# ./stop_us_east_1_instances.sh rm -rf ./latex_plot_data/rollback_throughput.data rm -rf ./latex_plot_data/rollback_latency.data @@ -48,4 +48,5 @@ for num_slow in "${num_slows[@]}"; do echo "$lat_str" >> ./latex_plot_data/rollback_latency.data done +wait ./multiply_by_1000.sh ./latex_plot_data/rollback_latency.data \ No newline at end of file diff --git a/scripts/deploy/latex_plot_data/rollback_latency.data b/scripts/deploy/latex_plot_data/rollback_latency.data index 71c9ae1b..8d894df6 100644 --- a/scripts/deploy/latex_plot_data/rollback_latency.data +++ b/scripts/deploy/latex_plot_data/rollback_latency.data @@ -1,6 +1,6 @@ n HS HS-2 HS-1 HS-1-SLOT10 HS-1-SLOT100 -0 -1 -1 0.0052072425 0.0053211625 0.0050350724999999995 -1 -1 -1 0.005365445 0.0050789775 0.005054245 -4 -1 -1 0.005796955 0.0051157725 0.0050108875 -7 -1 -1 0.0062702275 0.005133845 0.0049675975 -10 -1 -1 0.0069047375 0.00514959 0.005041435 +0 -1000.0000000000 -1000.0000000000 5.2072425000 5.3211625000 5.0350725000 +1 -1000.0000000000 -1000.0000000000 5.3654450000 5.0789775000 5.0542450000 +4 -1000.0000000000 -1000.0000000000 5.7969550000 5.1157725000 5.0108875000 +7 -1000.0000000000 -1000.0000000000 6.2702275000 5.1338450000 4.9675975000 +10 -1000.0000000000 -1000.0000000000 6.9047375000 5.1495900000 5.0414350000 diff --git "a/scripts/deploy/latex_plot_data/rollback_latency.data\303\247" "b/scripts/deploy/latex_plot_data/rollback_latency.data\303\247" deleted file mode 100644 index 8d894df6..00000000 --- "a/scripts/deploy/latex_plot_data/rollback_latency.data\303\247" +++ /dev/null @@ -1,6 +0,0 @@ -n HS HS-2 HS-1 HS-1-SLOT10 HS-1-SLOT100 -0 -1000.0000000000 -1000.0000000000 5.2072425000 5.3211625000 5.0350725000 -1 -1000.0000000000 -1000.0000000000 5.3654450000 5.0789775000 5.0542450000 -4 -1000.0000000000 -1000.0000000000 5.7969550000 5.1157725000 5.0108875000 -7 -1000.0000000000 -1000.0000000000 6.2702275000 5.1338450000 4.9675975000 -10 -1000.0000000000 -1000.0000000000 6.9047375000 5.1495900000 5.0414350000 diff --git a/scripts/deploy/multiply_by_1000.sh b/scripts/deploy/multiply_by_1000.sh deleted file mode 100755 index 484d4d55..00000000 --- a/scripts/deploy/multiply_by_1000.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -input_file=$1 -awk 'NR==1 {print; next} {printf "%s", $1; for(i=2;i<=NF;i++) printf " %.10f", $i*1000; print ""}' "$input_file" > "${input_file}.tmp" && mv "${input_file}.tmp" "$input_file"รง \ No newline at end of file
