Last change
on this file since 1016 was
998,
checked in by cfuguet, 9 years ago
|
reconf: several improvements in the dspin_router synthetic test platform
|
-
Property svn:executable set to
*
|
File size:
937 bytes
|
Line | |
---|
1 | #!/usr/bin/env sh |
---|
2 | LOGDIR=logs |
---|
3 | COMMON="-X 5 -Y 5 -B 0 -N 10000 -P 0" |
---|
4 | MEANFILE=unicast_mean_latency.txt |
---|
5 | MAXLOAD=550 |
---|
6 | SCRIPTPATH=$(dirname $0) |
---|
7 | |
---|
8 | # compile the platform |
---|
9 | make |
---|
10 | if [[ ! -f simul.x ]]; then exit 1; fi; |
---|
11 | |
---|
12 | rm -f $MEANFILE |
---|
13 | |
---|
14 | mkdir -p $LOGDIR |
---|
15 | for (( load = 25; load <= $MAXLOAD; load += 25 )); do |
---|
16 | LOGFILE=$LOGDIR/$(echo latency_unicast_all'_'$load); |
---|
17 | ARGS="$COMMON -L $load"; |
---|
18 | echo "./simul.x $ARGS ($LOGFILE)" | tee -a $MEANFILE |
---|
19 | ./simul.x $ARGS > $LOGFILE 2>/dev/null; |
---|
20 | $SCRIPTPATH/unicast_latency.sh $LOGFILE >> $MEANFILE |
---|
21 | done |
---|
22 | |
---|
23 | for (( x = 0; x < 5; x++ )); do |
---|
24 | for (( y = 0; y < 5; y++ )); do |
---|
25 | for (( load = 25; load <= $MAXLOAD; load += 25 )); do |
---|
26 | LOGFILE=$LOGDIR/$(echo latency_unicast_all'_'$x'_'$y'_'$load); |
---|
27 | ARGS="$COMMON -L $load -FX $x -FY $y"; |
---|
28 | echo "./simul.x $ARGS ($LOGFILE)" | tee -a $MEANFILE |
---|
29 | ./simul.x $ARGS > $LOGFILE 2>/dev/null; |
---|
30 | $SCRIPTPATH/unicast_latency.sh $LOGFILE >> $MEANFILE |
---|
31 | done; |
---|
32 | done; |
---|
33 | done; |
---|
Note: See
TracBrowser
for help on using the repository browser.