mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-23 08:34:23 +00:00
15 lines
239 B
Bash
15 lines
239 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
runs=9
|
||
|
totalt=0.0
|
||
|
|
||
|
for i in $(seq $runs)
|
||
|
do
|
||
|
exet=$(./atax_acc)
|
||
|
totalt=$(awk "BEGIN{print $totalt+$exet}")
|
||
|
echo " Run #$i: $exet seconds"
|
||
|
done
|
||
|
|
||
|
avgt=$(awk "BEGIN{print $totalt/$runs}")
|
||
|
echo "Average: $avgt seconds"
|