Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
57d8d87d
Commit
57d8d87d
authored
Jul 10, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ModSim ass4 taddeus: Ran new benchmark.
parent
2b47c1a4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
41 deletions
+47
-41
modsim/ass4_taddeus/vibstring/benchmark.sh
modsim/ass4_taddeus/vibstring/benchmark.sh
+5
-4
modsim/ass4_taddeus/vibstring/par.sh
modsim/ass4_taddeus/vibstring/par.sh
+1
-1
modsim/ass4_taddeus/vibstring/report/bench.txt
modsim/ass4_taddeus/vibstring/report/bench.txt
+41
-36
No files found.
modsim/ass4_taddeus/vibstring/benchmark.sh
View file @
57d8d87d
#!/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
...
...
modsim/ass4_taddeus/vibstring/par.sh
View file @
57d8d87d
...
@@ -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
=
"edu
20,edu
21"
hosts
=
"edu
020,edu0
21"
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
...
...
modsim/ass4_taddeus/vibstring/report/bench.txt
View file @
57d8d87d
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment