[complement-svn] SF.net SVN: complement: [1317] trunk/explore/perf/STL
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2006-10-13 13:03:38
|
Revision: 1317 http://svn.sourceforge.net/complement/?rev=1317&view=rev Author: complement Date: 2006-10-13 06:03:26 -0700 (Fri, 13 Oct 2006) Log Message: ----------- adopt to new output dir names; add raw write test; fix params-ropes test Modified Paths: -------------- trunk/explore/perf/STL/stream/fstream-raw/Makefile trunk/explore/perf/STL/stream/test.sh trunk/explore/perf/STL/string/ropes/test.sh trunk/explore/perf/STL/string/test.sh trunk/explore/perf/STL/string-MT/test.sh Added Paths: ----------- trunk/explore/perf/STL/stream/fstream-raw/Makefile3.inc trunk/explore/perf/STL/stream/fstream-raw/str3.c trunk/explore/perf/STL/stream/fstream-raw/unistd/ trunk/explore/perf/STL/stream/fstream-raw/unistd/Makefile trunk/explore/perf/STL/string/params-ropes/Makefile trunk/explore/perf/STL/string/params-ropes/Makefile.inc trunk/explore/perf/STL/string/params-ropes/str.cc Modified: trunk/explore/perf/STL/stream/fstream-raw/Makefile =================================================================== --- trunk/explore/perf/STL/stream/fstream-raw/Makefile 2006-10-12 16:36:22 UTC (rev 1316) +++ trunk/explore/perf/STL/stream/fstream-raw/Makefile 2006-10-13 13:03:26 UTC (rev 1317) @@ -1,6 +1,6 @@ # -*- Makefile -*- Time-stamp: <06/01/04 00:31:44 ptr> -DIRS = STLport-default STLport-malloc libstdc++ stdio +DIRS = STLport-default STLport-malloc libstdc++ stdio unistd all: for d in $(DIRS); do \ Added: trunk/explore/perf/STL/stream/fstream-raw/Makefile3.inc =================================================================== --- trunk/explore/perf/STL/stream/fstream-raw/Makefile3.inc (rev 0) +++ trunk/explore/perf/STL/stream/fstream-raw/Makefile3.inc 2006-10-13 13:03:26 UTC (rev 1317) @@ -0,0 +1,4 @@ +# -*- makefile -*- Time-stamp: <02/03/11 16:03:54 ptr> + +PRGNAME = str +SRC_C = ../str3.c Added: trunk/explore/perf/STL/stream/fstream-raw/str3.c =================================================================== --- trunk/explore/perf/STL/stream/fstream-raw/str3.c (rev 0) +++ trunk/explore/perf/STL/stream/fstream-raw/str3.c 2006-10-13 13:03:26 UTC (rev 1317) @@ -0,0 +1,21 @@ +/* Time-stamp: <06/01/04 00:21:07 ptr> */ + +#include <fcntl.h> +#include <stdio.h> +#include <stdlib.h> + +int main( int argc, char *argv[] ) +{ + int f; + int i; + + f = open( "test", O_WRONLY | O_CREAT | O_TRUNC, 0666 ); + + for ( i = 0; i < 10000000; ++i ) { + write( f, (const void *)&i, sizeof(i) ); + } + + close( f ); + + return 0; +} Property changes on: trunk/explore/perf/STL/stream/fstream-raw/unistd ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/STL/stream/fstream-raw/unistd/Makefile =================================================================== --- trunk/explore/perf/STL/stream/fstream-raw/unistd/Makefile (rev 0) +++ trunk/explore/perf/STL/stream/fstream-raw/unistd/Makefile 2006-10-13 13:03:26 UTC (rev 1317) @@ -0,0 +1,11 @@ +# -*- Makefile -*- Time-stamp: <06/01/04 00:22:44 ptr> + +SRCROOT := ../../../../.. +COMPILER_NAME := gcc + +ALL_TAGS := release-shared + +STLPORT_LIB_DIR := ../../../build/lib + +include ../Makefile3.inc +include ${SRCROOT}/Makefiles/top.mak Modified: trunk/explore/perf/STL/stream/test.sh =================================================================== --- trunk/explore/perf/STL/stream/test.sh 2006-10-12 16:36:22 UTC (rev 1316) +++ trunk/explore/perf/STL/stream/test.sh 2006-10-13 13:03:26 UTC (rev 1317) @@ -4,7 +4,7 @@ # BASEDIR=${PWD}/../../.. -timeprg=${BASEDIR}/app/utils/time/obj/gcc/shared/time +timeprg=${BASEDIR}/app/utils/time/obj/gcc/so/time # time='/usr/bin/time' function runtest () @@ -14,7 +14,7 @@ while [ $i -lt 10 ] ; do echo -n . let i=i+1 - $timeprg -a -o s.log "$1/obj/gcc/shared/str" + $timeprg -a -o s.log "$1/obj/gcc/so/str" done echo echo ========= @@ -59,3 +59,7 @@ echo $j `../stat.awk s.log` >> stdio.dat let j=j+1 done + +runtest fstream-raw/unistd +echo 2 `../stat.awk s.log` >> unistd.dat + Added: trunk/explore/perf/STL/string/params-ropes/Makefile =================================================================== --- trunk/explore/perf/STL/string/params-ropes/Makefile (rev 0) +++ trunk/explore/perf/STL/string/params-ropes/Makefile 2006-10-13 13:03:26 UTC (rev 1317) @@ -0,0 +1,23 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 00:42:26 ptr> + +DIRS = STLport-default STLport-malloc STLport-newalloc libstd++ + +all: + for d in $(DIRS); do \ + (cd $$d; ${MAKE});\ + done + +clean: + for d in $(DIRS); do \ + (cd $$d; ${MAKE} clean); \ + done + +clobber: + for d in $(DIRS); do \ + (cd $$d; ${MAKE} clobber); \ + done + +depend: + for d in $(DIRS); do \ + (cd $$d; ${MAKE} depend); \ + done Added: trunk/explore/perf/STL/string/params-ropes/Makefile.inc =================================================================== --- trunk/explore/perf/STL/string/params-ropes/Makefile.inc (rev 0) +++ trunk/explore/perf/STL/string/params-ropes/Makefile.inc 2006-10-13 13:03:26 UTC (rev 1317) @@ -0,0 +1,5 @@ +# -*- makefile -*- Time-stamp: <02/03/11 16:03:54 ptr> +# $Id: Makefile.inc 956 2004-04-21 09:14:47Z ptr $ + +PRGNAME = str +SRC_CC = ../str.cc Added: trunk/explore/perf/STL/string/params-ropes/str.cc =================================================================== --- trunk/explore/perf/STL/string/params-ropes/str.cc (rev 0) +++ trunk/explore/perf/STL/string/params-ropes/str.cc 2006-10-13 13:03:26 UTC (rev 1317) @@ -0,0 +1,24 @@ +// -*- C++ -*- Time-stamp: <04/07/14 23:39:44 ptr> + +#include <rope> + +using namespace std; + +rope<char> func( rope<char> par ) +{ + rope<char> tmp( par ); + + return tmp; +} + +int main( int, char * const * ) +{ + rope<char> s( "qyweyuewunfkHBUKGYUGL,wehbYGUW^\ +(@T@H!BALWD:h^&@#*@(#:JKHWJ:CND" ); + + for ( int i = 0; i < 10000000; ++i ) { + rope<char> sx = func( s ); + } + + return 0; +} Modified: trunk/explore/perf/STL/string/ropes/test.sh =================================================================== --- trunk/explore/perf/STL/string/ropes/test.sh 2006-10-12 16:36:22 UTC (rev 1316) +++ trunk/explore/perf/STL/string/ropes/test.sh 2006-10-13 13:03:26 UTC (rev 1317) @@ -1,7 +1,7 @@ #!/bin/sh BASEDIR=${PWD}/../../../.. -timeprg=${BASEDIR}/app/utils/time/obj/gcc/shared/time +timeprg=${BASEDIR}/app/utils/time/obj/gcc/so/time w_lnum () { if [ -f $1 ] ; then @@ -13,7 +13,7 @@ experiment () { #w_lnum test$3.log - ${timeprg} -a -o test$5.log $4/obj/gcc/shared/str $3 -i=$2 -b=$1 + ${timeprg} -a -o test$5.log $4/obj/gcc/so/str $3 -i=$2 -b=$1 echo -e ".\c" } Modified: trunk/explore/perf/STL/string/test.sh =================================================================== --- trunk/explore/perf/STL/string/test.sh 2006-10-12 16:36:22 UTC (rev 1316) +++ trunk/explore/perf/STL/string/test.sh 2006-10-13 13:03:26 UTC (rev 1317) @@ -4,7 +4,7 @@ # BASEDIR=${PWD}/../../.. -timeprg=${BASEDIR}/app/utils/time/obj/gcc/shared/time +timeprg=${BASEDIR}/app/utils/time/obj/gcc/so/time # time='/usr/bin/time' function runtest () @@ -14,7 +14,7 @@ while [ $i -lt 10 ] ; do echo -n . let i=i+1 - $timeprg -a -o s.log "$1/obj/gcc/shared/str" + $timeprg -a -o s.log "$1/obj/gcc/so/str" done echo echo ========= Modified: trunk/explore/perf/STL/string-MT/test.sh =================================================================== --- trunk/explore/perf/STL/string-MT/test.sh 2006-10-12 16:36:22 UTC (rev 1316) +++ trunk/explore/perf/STL/string-MT/test.sh 2006-10-13 13:03:26 UTC (rev 1317) @@ -4,7 +4,7 @@ # BASEDIR=${PWD}/../../.. -timeprg=${BASEDIR}/app/utils/time/obj/gcc/shared/time +timeprg=${BASEDIR}/app/utils/time/obj/gcc/so/time # time='/usr/bin/time' function runtest () @@ -14,7 +14,7 @@ while [ $i -lt 10 ] ; do echo -n . let i=i+1 - $timeprg -a -o s.log "$1/obj/gcc/shared/str" + $timeprg -a -o s.log "$1/obj/gcc/so/str" done echo echo ========= This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |