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

ModSim ass4 taddeus: Ran new benchmark.

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