diff options
author | bala <balanatarajan@users.noreply.github.com> | 2003-06-09 18:18:14 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2003-06-09 18:18:14 +0000 |
commit | 741f548c3b0099d0116148484d40e2fb3efd4b8a (patch) | |
tree | 7af26c0ab7956ee5c81e47cc227b9d1ea4d6479a /bin/performance_stats.sh | |
parent | 6f252a0941c0043ef40ea7d2520143b36ac7f646 (diff) | |
download | ATCD-741f548c3b0099d0116148484d40e2fb3efd4b8a.tar.gz |
ChangeLogTag:Mon Jun 9 13:16:38 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'bin/performance_stats.sh')
-rwxr-xr-x | bin/performance_stats.sh | 62 |
1 files changed, 61 insertions, 1 deletions
diff --git a/bin/performance_stats.sh b/bin/performance_stats.sh index d22a0783412..5ce44caf9d8 100755 --- a/bin/performance_stats.sh +++ b/bin/performance_stats.sh @@ -14,6 +14,10 @@ DATE=`date +%Y/%m/%d-%H:%M` COMMON_TESTS="AMI DII DSI Deferred Single_Threaded Thread_Per_Connection Thread_Pool" +SEQUENCE_TESTS="Single_Threaded" + +SEQ_TEST_TYPE="octet long short char double longlong" + cd $DEST/source /bin/sync @@ -43,6 +47,25 @@ if grep -q 'Total throughput: ' Default.log; then ) >> Default.txt fi +/bin/sync +sleep 2 +( + cd $ACE_ROOT/TAO/performance-tests/Sequence_Latency/Single_Threaded; + + for i in $SEQ_TEST_TYPE; do + ( + ./default_configuration.pl -t $i > $DEST/source/Sequence_Default_${i}.log 2>&1 + if grep -q 'Total throughput: ' $DEST/source/Sequence_Default_${i}.log; then + ( + echo -n $DATE " "; + awk '/^Total throughput:/ {print $3}' $DEST/source/Sequence_Default_${i}.log + ) >> $DEST/source/Sequence_Default_${i}.txt + fi + ) + done + +) + for i in $COMMON_TESTS; do /bin/sync sleep 10 @@ -53,11 +76,32 @@ for i in $COMMON_TESTS; do if grep -q 'Total throughput: ' ${i}.log; then ( echo -n $DATE " "; - awk '/^Total throughput:/ {print $3}' ${i}.log + awk '/^Total throughput:/ {print $3}' $DEST/source/${i}.log ) >> ${i}.txt fi done +for i in $SEQUENCE_TESTS; do + /bin/sync + sleep 10 + ( + cd $ACE_ROOT/TAO/performance-tests/Sequence_Latency/${i}; + for j in $SEQ_TEST_TYPE; do + ( + ./run_test.pl > $DEST/source/Sequence_${i}_${j}.log 2>&1 + + if grep -q 'Total throughput: ' $DEST/source/Sequence_${i}_${j}.log; then + ( + echo -n $DATE " "; + awk '/^Total throughput:/ {print $3}' $DEST/source/Sequence_${i}_${j}.log + ) >> $DEST/source/Sequence_${i}_${j}.txt + fi + ) + done + ) + +done + for i in $COMMON_TESTS TCP Default; do $ACE_ROOT/bin/generate_performance_chart.sh ${i}.txt ${i}.png "$i" /bin/cp ${i}.png $DEST/images/${i}.png @@ -65,6 +109,22 @@ for i in $COMMON_TESTS TCP Default; do /usr/bin/tail -5 ${i}.txt > $DEST/data/LAST_${i}.txt done +for i in $SEQ_TEST_TYPE ; do + $ACE_ROOT/bin/generate_performance_chart.sh Sequence_Default_${i}.txt Sequence_Default_${i}.png "Default Configuration for $i sequences" + /bin/cp Sequence_Default_${i}.png $DEST/images/Sequence_Default_${i}.png + /usr/bin/tac $DEST/source/Sequence_Default_${i}.txt > $DEST/data/Sequence_Default_${i}.txt + /usr/bin/tail -5 $DEST/source/Sequence_Default_${i}.txt > $DEST/data/LAST_Sequence_Default_${i}.txt +done + +for i in $SEQUENCE_TESTS; do +for j in $SEQ_TEST_TYPE; do + $ACE_ROOT/bin/generate_performance_chart.sh Sequence_${i}_${j}.txt Sequence_${i}_${j}.png "Sequence_$i_$j" + /bin/cp Sequence_${i}_${j}.png $DEST/images/Sequence_${i}_${j}.png + /usr/bin/tac Sequence_${i}_${j}.txt > $DEST/data/Sequence_${i}_${j}.txt + /usr/bin/tail -5 Sequence_${i}_${j}.txt > $DEST/data/LAST_Sequence_${i}_${j}.txt +done +done + gnuplot <<_EOF_ >/dev/null 2>&1 set xdata time set timefmt '%Y/%m/%d-%H:%M' |