1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-23 00:24:23 +00:00

Hide insignificant digits in the bench target

This commit is contained in:
Steffo 2022-11-16 18:03:24 +01:00
parent c104caa1a6
commit 9c153bb89f
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -7,8 +7,8 @@ for i in $(seq $runs)
do do
exet=$(./atax_acc) exet=$(./atax_acc)
totalt=$(awk "BEGIN{print $totalt+$exet}") totalt=$(awk "BEGIN{print $totalt+$exet}")
echo " Run #$i: $exet seconds" echo "Run #$i: " $(awk "BEGIN{printf(\"%.3g\", $exet)}") "seconds"
done done
avgt=$(awk "BEGIN{print $totalt/$runs}") avgt=$(awk "BEGIN{print $totalt/$runs}")
echo "Average: $avgt seconds" echo "Average: " $(awk "BEGIN{printf(\"%.3g\", $avgt)}") "seconds"