aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/scripts
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2004-01-30 08:24:27 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2004-01-30 08:24:27 +0000
commitf64f44069c2d76c78b647f69f9d19dc65fdd0791 (patch)
tree9af121b7518c99dcd4554d9c6477fc2ba15b30db /libstdc++-v3/scripts
parent5fddd9fe582272b47be32830d0fac43ba29cd3c8 (diff)
downloadgcc-f64f44069c2d76c78b647f69f9d19dc65fdd0791.zip
gcc-f64f44069c2d76c78b647f69f9d19dc65fdd0791.tar.gz
gcc-f64f44069c2d76c78b647f69f9d19dc65fdd0791.tar.bz2
check_performance: Only compile with $THREAD_FLAG when test is marked to require it.
* scripts/check_performance: Only compile with $THREAD_FLAG when test is marked to require it. Allow multiple compilations/executions of marked tests. * testsuite/testsuite_performance.h (report_performance): Report dynamic thread support status. (report_header): Likewise. * testsuite/performance/allocator.cc: Stabilize iteration count. Support more allocators. Mark each allocator test to run and report independently. * testsuite/performance/allocator_map_thread.cc: Likewise. * testsuite/performance/allocator_thread.cc: Likewise. From-SVN: r76932
Diffstat (limited to 'libstdc++-v3/scripts')
-rwxr-xr-xlibstdc++-v3/scripts/check_performance38
1 files changed, 31 insertions, 7 deletions
diff --git a/libstdc++-v3/scripts/check_performance b/libstdc++-v3/scripts/check_performance
index 5865114..cbfabb0 100755
--- a/libstdc++-v3/scripts/check_performance
+++ b/libstdc++-v3/scripts/check_performance
@@ -31,19 +31,43 @@ SH_FLAG="-Wl,--rpath -Wl,$BUILD_DIR/../../gcc \
-Wl,--rpath -Wl,$BUILD_DIR/src/.libs"
ST_FLAG="-static"
LINK=$SH_FLAG
-CXX="$COMPILER $INCLUDES $FLAGS $THREAD_FLAG $LINK"
+CXX="$COMPILER $INCLUDES $FLAGS $LINK"
+CXX_THREAD="$COMPILER $INCLUDES $FLAGS $THREAD_FLAG $LINK"
TESTS_FILE="testsuite_files_performance"
for NAME in `cat $TESTS_FILE`
do
- echo $NAME
- FILE_NAME="`basename $NAME`"
- EXE_NAME="`echo $FILE_NAME | sed 's/cc$/exe/'`"
- $CXX $SRC_DIR/testsuite/$NAME -o $EXE_NAME
- ./$EXE_NAME
- echo ""
+ RUN=true
+ for CYCLE in `sed -n 's,.*\(TEST_[SB][0-9]*\)$,\1,p' $SRC_DIR/testsuite/$NAME`
+ do
+ RUN=false
+ echo $NAME $CYCLE
+ FILE_NAME="`basename $NAME`"
+ EXE_NAME="`echo $FILE_NAME-$CYCLE | sed 's/cc$/exe/'`"
+ $CXX -D$CYCLE $SRC_DIR/testsuite/$NAME -o $EXE_NAME
+ ./$EXE_NAME
+ echo ""
+ done
+ for CYCLE in `sed -n 's,.*\(TEST_[TB][0-9]*\)$,\1,p' $SRC_DIR/testsuite/$NAME`
+ do
+ RUN=false
+ echo $NAME $CYCLE THREAD
+ FILE_NAME="`basename $NAME`"
+ EXE_NAME="`echo $FILE_NAME-$CYCLE | sed 's/cc$/exe/'`"
+ $CXX_THREAD -D$CYCLE $SRC_DIR/testsuite/$NAME -o $EXE_NAME
+ ./$EXE_NAME
+ echo ""
+ done
+ if $RUN; then
+ echo $NAME
+ FILE_NAME="`basename $NAME`"
+ EXE_NAME="`echo $FILE_NAME | sed 's/cc$/exe/'`"
+ $CXX $SRC_DIR/testsuite/$NAME -o $EXE_NAME
+ ./$EXE_NAME
+ echo ""
+ fi
done
exit 0