From 7cfd7af121825b02648286f494a7ca33badb3e97 Mon Sep 17 00:00:00 2001 From: Pedro Fontana Date: Tue, 16 Apr 2024 18:11:17 -0300 Subject: [PATCH] use printf --- examples/hyper_threading/hyper-threading-workflow.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/hyper_threading/hyper-threading-workflow.sh b/examples/hyper_threading/hyper-threading-workflow.sh index 731144a8b1..bbaf132c30 100644 --- a/examples/hyper_threading/hyper-threading-workflow.sh +++ b/examples/hyper_threading/hyper-threading-workflow.sh @@ -7,7 +7,7 @@ thread_counts=(1 2 4 6 8 16 ) binaries=("hyper_threading_main" "hyper_threading_pr") echo -e "**Hyper Thereading Benchmark results**" >> result.md -echo -e "\n \n \n " >> result.md +printf "\n\n\n" >> result.md # Iter over thread_counts for threads in "${thread_counts[@]}"; do @@ -21,14 +21,14 @@ for threads in "${thread_counts[@]}"; do # Execute echo "Running benchmark for ${threads} threads" - echo -e "\n \n \n " >> result.md + printf "\n\n\n" >> result.md echo -e $cmd >> result.md eval -e $cmd >> result.md - echo -e "\n \n \n " >> result.md + printf "\n\n\n" >> result.md done { - echo '```' + echo -e '```' cat result.md - echo '```' + echo -e '```' } > temp_result.md && mv temp_result.md result.md