Last change
on this file since 996 was
996,
checked in by cfuguet, 10 years ago
|
reconf: introduce scripts to get transactions latency in the synthetic
platform.
|
-
Property svn:executable set to
*
|
File size:
902 bytes
|
Line | |
---|
1 | #!/usr/bin/env sh |
---|
2 | LOGDIR=logs |
---|
3 | FX=2 |
---|
4 | FY=2 |
---|
5 | COMMON="-X 5 -Y 5 -FX $FX -FY $FY -N 10000" |
---|
6 | |
---|
7 | mkdir -p $LOGDIR |
---|
8 | for (( x = 0; x < 5; x++ )); do |
---|
9 | for (( y = 0; y < 5; y++ )); do |
---|
10 | for (( load = 100; load <= 1000; load += 100 )); do |
---|
11 | if [[ ( $x == $FX ) && ( $y == $FY ) ]]; then continue; fi |
---|
12 | LOGFILE=$LOGDIR/$(echo latency'_'$x'_'$y'_'$load); |
---|
13 | ARGS="$COMMON -SX $x -SY $y -FX $FX -FY $FY -L $load"; |
---|
14 | echo "./simul.x $ARGS ($LOGFILE)" |
---|
15 | ./simul.x $ARGS > $LOGFILE 2>/dev/null; |
---|
16 | ./broadcast_latency.sh $LOGFILE |
---|
17 | if [[ $? == 1 ]]; then |
---|
18 | echo "FAILURE"; |
---|
19 | exit 1; |
---|
20 | fi |
---|
21 | done |
---|
22 | done |
---|
23 | done |
---|
24 | for (( load = 100; load <= 1000; load += 100 )); do |
---|
25 | LOGFILE=$LOGDIR/$(echo latency_all'_'$load); |
---|
26 | ARGS="$COMMON -FX $FX -FY $FY -L $load"; |
---|
27 | echo "./simul.x $ARGS ($LOGFILE)" |
---|
28 | ./simul.x $ARGS > $LOGFILE 2>/dev/null; |
---|
29 | ./broadcast_latency.sh $LOGFILE |
---|
30 | if [[ $? == 1 ]]; then |
---|
31 | echo "FAILURE"; |
---|
32 | exit 1; |
---|
33 | fi |
---|
34 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.