Commit 57d8d87d authored by Taddeus Kroes's avatar Taddeus Kroes

ModSim ass4 taddeus: Ran new benchmark.

parent 2b47c1a4
#!/bin/bash
if [ $# -lt 3 ]; then
echo "Usage: bash $0 MAX STEP STRING_STEPS"
if [ $# -lt 1 ]; then
echo "Usage: bash $0 STRING_STEPS"
exit 1
fi
REPEAT=4
FILE=bench.txt
dx=`echo "1/$3" | bc -l`
dx=`echo "1/$1" | bc -l`
args="sinus 10000 1 $dx 1 2"
# Execute sequential program
/usr/bin/time -f "%e" -o $FILE ./seq $args
# Execute parallel program for different numbers of nodes
for (( i=2; i <= $1; i += $2 )); do
#for (( i=2; i <= $1; i += $2 )); do
for i in `seq 2 10`; do
for j in `seq $REPEAT`; do
/usr/bin/time -f "$i %e" -ao $FILE ./par.sh $i $args
done
......
......@@ -5,7 +5,7 @@ if [ $# -lt 7 ]; then
fi
# Build hosts string
hosts="edu20,edu21"
hosts="edu020,edu021"
for i in `seq 3 $1`; do
hosts="$hosts,edu02`expr $i - 1`"
done
......
19.48
2 11.45
2 10.19
2 10.23
2 10.20
3 14.76
3 14.86
3 14.90
3 14.78
4 11.72
4 11.82
4 11.72
4 11.86
5 13.82
5 13.85
5 13.97
5 13.83
6 12.17
6 12.21
6 12.00
6 12.01
7 13.69
7 13.73
7 13.67
7 13.77
8 12.63
8 12.44
8 12.68
8 12.64
9 13.74
9 13.80
9 13.84
9 13.89
10 12.70
10 12.81
10 12.79
10 12.75
2 11.03
2 10.99
2 11.04
2 11.07
3 7.86
3 7.83
3 11.37
3 8.03
4 6.47
4 7.02
4 6.30
4 6.45
5 5.29
5 5.68
5 5.50
5 6.05
6 4.66
6 4.66
6 5.25
6 4.71
7 4.63
7 4.42
7 4.44
7 4.23
8 4.51
8 3.91
8 4.14
8 4.11
Command exited with non-zero status 1
9 21.12
9 4.22
9 4.08
9 4.31
Command exited with non-zero status 1
10 3.05
Command exited with non-zero status 1
10 3.05
Command exited with non-zero status 1
10 3.05
Command exited with non-zero status 1
10 3.10
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment