Skip to content

Commit

Permalink
use printf
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Fontana authored and Pedro Fontana committed Apr 16, 2024
1 parent 11b0c55 commit 7cfd7af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/hyper_threading/hyper-threading-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 7cfd7af

Please sign in to comment.