complement-svn Mailing List for Complement (Page 26)
Status: Pre-Alpha
Brought to you by:
complement
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(61) |
Nov
(76) |
Dec
(39) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(33) |
Feb
(41) |
Mar
(16) |
Apr
|
May
(22) |
Jun
(14) |
Jul
(64) |
Aug
(60) |
Sep
(35) |
Oct
(34) |
Nov
(10) |
Dec
(5) |
2008 |
Jan
(4) |
Feb
(24) |
Mar
(10) |
Apr
(30) |
May
(15) |
Jun
(50) |
Jul
(20) |
Aug
(7) |
Sep
(8) |
Oct
(10) |
Nov
|
Dec
|
From: <com...@us...> - 2006-11-01 12:40:04
|
Revision: 1353 http://svn.sourceforge.net/complement/?rev=1353&view=rev Author: complement Date: 2006-11-01 04:39:44 -0800 (Wed, 01 Nov 2006) Log Message: ----------- shades rlimit Added Paths: ----------- trunk/explore/perf/stem/rlimit/ trunk/explore/perf/stem/rlimit/Makefile trunk/explore/perf/stem/rlimit/Makefile.inc trunk/explore/perf/stem/rlimit/fdlimit.c Property changes on: trunk/explore/perf/stem/rlimit ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/stem/rlimit/Makefile =================================================================== --- trunk/explore/perf/stem/rlimit/Makefile (rev 0) +++ trunk/explore/perf/stem/rlimit/Makefile 2006-11-01 12:39:44 UTC (rev 1353) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <04/01/09 16:53:50 ptr> + +SRCROOT := ../../.. +COMPILER_NAME := gcc + +include Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +INCLUDES += -I${CoMT_INCLUDE_DIR} +LDSEARCH += -L${CoMT_LIB_DIR} + +release-shared : LDFLAGS += -Wl,-rpath=${STLPORT_LIB_DIR}:${PWD}/${CoMT_LIB_DIR} -lxmt -lsockios -lstem +dbg-shared : LDFLAGS += -Wl,-rpath=${STLPORT_LIB_DIR}:${PWD}/${CoMT_LIB_DIR} -lxmtg -lsockiosg -lstemg +stldbg-shared : LDFLAGS += -Wl,-rpath=${STLPORT_LIB_DIR}:${PWD}/${CoMT_LIB_DIR} -lxmtstlg -lsockiosstlg -lstemstlg Added: trunk/explore/perf/stem/rlimit/Makefile.inc =================================================================== --- trunk/explore/perf/stem/rlimit/Makefile.inc (rev 0) +++ trunk/explore/perf/stem/rlimit/Makefile.inc 2006-11-01 12:39:44 UTC (rev 1353) @@ -0,0 +1,4 @@ +# -*- makefile -*- Time-stamp: <04/01/12 15:37:40 ptr> + +PRGNAME = fdlimit +SRC_C = fdlimit.c Added: trunk/explore/perf/stem/rlimit/fdlimit.c =================================================================== --- trunk/explore/perf/stem/rlimit/fdlimit.c (rev 0) +++ trunk/explore/perf/stem/rlimit/fdlimit.c 2006-11-01 12:39:44 UTC (rev 1353) @@ -0,0 +1,44 @@ +#include "stdio.h" +#include "stdlib.h" +#include "string.h" +#include "errno.h" +#include "sys/resource.h" + +int main (int argc, char *argv[]) +{ + if (argc != 2) + { + printf ("usage: fdlimit new-limit\n" + "$ ./fdlimit 100\n"); + exit (1); + } + struct rlimit rlp; + int result = getrlimit (RLIMIT_NOFILE, &rlp); + if (result != 0) + { + printf ("error %d: %s\n", errno, strerror (errno)); + exit (1); + } + printf ("current fd limit is %d\n", rlp.rlim_cur); + printf ("max fd limit is %d\n", rlp.rlim_max); + + /* change the current limit */ + rlp.rlim_cur = atoi (argv[1]); + + result = setrlimit (RLIMIT_NOFILE, &rlp); + if (result != 0) + { + printf ("error %d: %s\n", errno, strerror (errno)); + /* don't exit. see that the limit is unchanged */ + } + + result = getrlimit (RLIMIT_NOFILE, &rlp); + if (result != 0) + { + printf ("error %d: %s\n", errno, strerror (errno)); + exit (1); + } + printf ("current fd limit is %d\n", rlp.rlim_cur); + printf ("max fd limit is %d\n", rlp.rlim_max); + return 0; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-11-01 12:39:20
|
Revision: 1352 http://svn.sourceforge.net/complement/?rev=1352&view=rev Author: complement Date: 2006-11-01 04:39:10 -0800 (Wed, 01 Nov 2006) Log Message: ----------- shades sign conversions Added Paths: ----------- trunk/explore/inquiry/shades/sign/ trunk/explore/inquiry/shades/sign/Makefile trunk/explore/inquiry/shades/sign/Makefile.inc trunk/explore/inquiry/shades/sign/char.c Property changes on: trunk/explore/inquiry/shades/sign ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/inquiry/shades/sign/Makefile =================================================================== --- trunk/explore/inquiry/shades/sign/Makefile (rev 0) +++ trunk/explore/inquiry/shades/sign/Makefile 2006-11-01 12:39:10 UTC (rev 1352) @@ -0,0 +1,8 @@ +# -*- Makefile -*- Time-stamp: <04/01/09 16:53:50 ptr> + +SRCROOT := ../../.. +COMPILER_NAME := gcc + +include Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + Added: trunk/explore/inquiry/shades/sign/Makefile.inc =================================================================== --- trunk/explore/inquiry/shades/sign/Makefile.inc (rev 0) +++ trunk/explore/inquiry/shades/sign/Makefile.inc 2006-11-01 12:39:10 UTC (rev 1352) @@ -0,0 +1,4 @@ +# -*- makefile -*- Time-stamp: <04/01/12 15:37:40 ptr> + +PRGNAME = test +SRC_C = char.c Added: trunk/explore/inquiry/shades/sign/char.c =================================================================== --- trunk/explore/inquiry/shades/sign/char.c (rev 0) +++ trunk/explore/inquiry/shades/sign/char.c 2006-11-01 12:39:10 UTC (rev 1352) @@ -0,0 +1,14 @@ +#include <stdio.h> + +int main() +{ + char c1 = 0xff; + char c2 = 0xff; + + unsigned int ui1 = (unsigned)c1; + unsigned ui2 = (unsigned)c2; + + printf( "%x\n", ui1 ); + + return 0; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-31 11:02:24
|
Revision: 1351 http://svn.sourceforge.net/complement/?rev=1351&view=rev Author: complement Date: 2006-10-31 03:02:01 -0800 (Tue, 31 Oct 2006) Log Message: ----------- add useful includes, detected when compile without STLport Modified Paths: -------------- trunk/explore/lib/mt/ChangeLog trunk/explore/lib/mt/time.cc Modified: trunk/explore/lib/mt/ChangeLog =================================================================== --- trunk/explore/lib/mt/ChangeLog 2006-10-31 10:59:40 UTC (rev 1350) +++ trunk/explore/lib/mt/ChangeLog 2006-10-31 11:02:01 UTC (rev 1351) @@ -1,3 +1,8 @@ +2006-10-31 Petr Ovtchenkov <pt...@is...> + + * time.cc: add useful includes, detected when compile + without STLport. + 2006-10-24 Petr Ovtchenkov <pt...@is...> * xmt.h, xmt.cc, time.h, time.cc: move timespec functions to Modified: trunk/explore/lib/mt/time.cc =================================================================== --- trunk/explore/lib/mt/time.cc 2006-10-31 10:59:40 UTC (rev 1350) +++ trunk/explore/lib/mt/time.cc 2006-10-31 11:02:01 UTC (rev 1351) @@ -10,6 +10,8 @@ #include <mt/time.h> #include <mt/xmt.h> +#include <cmath> +#include <sys/time.h> #ifdef _WIN32 xmt::Mutex _l; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-31 11:00:35
|
Revision: 1350 http://svn.sourceforge.net/complement/?rev=1350&view=rev Author: complement Date: 2006-10-31 02:59:40 -0800 (Tue, 31 Oct 2006) Log Message: ----------- add useful include, detected when compile without STLport Modified Paths: -------------- tags/complement-20061031/explore/lib/mt/time.cc Modified: tags/complement-20061031/explore/lib/mt/time.cc =================================================================== --- tags/complement-20061031/explore/lib/mt/time.cc 2006-10-31 09:48:48 UTC (rev 1349) +++ tags/complement-20061031/explore/lib/mt/time.cc 2006-10-31 10:59:40 UTC (rev 1350) @@ -10,6 +10,8 @@ #include <mt/time.h> #include <mt/xmt.h> +#include <cmath> +#include <sys/time.h> #ifdef _WIN32 xmt::Mutex _l; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-31 09:49:05
|
Revision: 1349 http://svn.sourceforge.net/complement/?rev=1349&view=rev Author: complement Date: 2006-10-31 01:48:48 -0800 (Tue, 31 Oct 2006) Log Message: ----------- snapshot 2006-10-31 Added Paths: ----------- tags/complement-20061031/ Copied: tags/complement-20061031 (from rev 1348, trunk) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-31 09:42:51
|
Revision: 1348 http://svn.sourceforge.net/complement/?rev=1348&view=rev Author: complement Date: 2006-10-31 01:42:10 -0800 (Tue, 31 Oct 2006) Log Message: ----------- remove dummy branches---product of conversion from CVS Removed Paths: ------------- branches/test_pkg_base/ branches/unlabeled-1.1.1/ branches/unlabeled-1.11.1/ branches/unlabeled-1.13.1/ branches/unlabeled-1.14.1/ branches/unlabeled-1.14.2/ branches/unlabeled-1.15.1/ branches/unlabeled-1.17.1/ branches/unlabeled-1.18.1/ branches/unlabeled-1.19.1/ branches/unlabeled-1.20.1/ branches/unlabeled-1.24.1/ branches/unlabeled-1.25.1/ branches/unlabeled-1.26.1/ branches/unlabeled-1.27.1/ branches/unlabeled-1.28.1/ branches/unlabeled-1.29.1/ branches/unlabeled-1.31.1/ branches/unlabeled-1.4.1/ branches/unlabeled-1.41.1/ branches/unlabeled-1.47.1/ branches/unlabeled-1.5.1/ branches/unlabeled-1.50.1/ branches/unlabeled-1.52.1/ branches/unlabeled-1.6.1/ branches/unlabeled-1.7.1/ branches/unlabeled-3.15.1/ branches/unlabeled-3.18.1/ branches/unlabeled-3.19.1/ branches/unlabeled-3.7.1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-26 06:03:18
|
Revision: 1347 http://svn.sourceforge.net/complement/?rev=1347&view=rev Author: complement Date: 2006-10-25 23:03:12 -0700 (Wed, 25 Oct 2006) Log Message: ----------- uncomment 0-read test Modified Paths: -------------- trunk/explore/test/libsockios/unit/unit_test.cc Modified: trunk/explore/test/libsockios/unit/unit_test.cc =================================================================== --- trunk/explore/test/libsockios/unit/unit_test.cc 2006-10-24 06:41:35 UTC (rev 1346) +++ trunk/explore/test/libsockios/unit/unit_test.cc 2006-10-26 06:03:12 UTC (rev 1347) @@ -527,8 +527,8 @@ ts->add( BOOST_TEST_CASE( &test_client_close_socket ) ); ts->add( BOOST_TEST_CASE( &test_more_bytes_in_socket ), 0, 5 ); ts->add( BOOST_TEST_CASE( &test_more_bytes_in_socket2 ), 0, 5 ); - // ts->add( BOOST_TEST_CASE( &test_read0 ), 0, 7 ); - // ts->add( BOOST_TEST_CASE( &test_read0_srv ) ); + ts->add( BOOST_TEST_CASE( &test_read0 ), 0, 7 ); + ts->add( BOOST_TEST_CASE( &test_read0_srv ) ); return ts; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-24 06:41:46
|
Revision: 1346 http://svn.sourceforge.net/complement/?rev=1346&view=rev Author: complement Date: 2006-10-23 23:41:35 -0700 (Mon, 23 Oct 2006) Log Message: ----------- move timespec functions to time.cc; move sleep-like functions from Thread to xmt namespace in time.cc Modified Paths: -------------- trunk/explore/include/mt/time.h trunk/explore/include/mt/xmt.h trunk/explore/lib/mt/ChangeLog trunk/explore/lib/mt/time.cc trunk/explore/lib/mt/xmt.cc Modified: trunk/explore/include/mt/time.h =================================================================== --- trunk/explore/include/mt/time.h 2006-10-24 06:40:06 UTC (rev 1345) +++ trunk/explore/include/mt/time.h 2006-10-24 06:41:35 UTC (rev 1346) @@ -1,40 +1,83 @@ -// -*- C++ -*- Time-stamp: <02/09/25 11:37:39 ptr> +// -*- C++ -*- Time-stamp: <06/10/24 09:28:28 ptr> /* - * - * Copyright (c) 2002 + * Copyright (c) 2002, 2006 * Petr Ovtchenkov * - * Licensed under the Academic Free License Version 1.0 + * Licensed under the Academic Free License version 3.0 * - * This material is provided "as is", with absolutely no warranty expressed - * or implied. Any use is at your own risk. - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies and - * that both that copyright notice and this permission notice appear - * in supporting documentation. */ -#ifndef __time_h -#define __time_h +#ifndef __mt_time_h +#define __mt_time_h -#ifdef __unix -# ifdef __HP_aCC -#pragma VERSIONID "@(#)$Id$" -# else -#ident "@(#)$Id$" -# endif -#endif - #ifndef __config_feature_h #include <config/feature.h> #endif +#ifdef WIN32 +# include <windows.h> +# include <memory> +# include <ctime> +# include <limits> +# pragma warning( disable : 4290) +#endif // WIN32 + #include <string> -#include <time.h> +#include <ctime> +#ifdef N_PLAT_NLM +# include <sys/time.h> // timespec, timespec_t +#endif + +#ifdef _WIN32 +extern "C" { + +typedef struct timespec { /* definition per POSIX.4 */ + time_t tv_sec; /* seconds */ + long tv_nsec; /* and nanoseconds */ +} timespec_t; + +} // extern "C" +#endif // _WIN32 + +#if defined(_WIN32) || defined(N_PLAT_NLM) +extern "C" { + +typedef struct timespec timestruc_t; /* definition per SVr4 */ + +} // extern "C" +#endif + std::string calendar_time( time_t t ); -#endif // __time_h +timespec operator +( const timespec& a, const timespec& b ); +timespec operator -( const timespec& a, const timespec& b ); +timespec operator /( const timespec& a, unsigned b ); +timespec operator /( const timespec& a, unsigned long b ); + +// timespec& operator =( timespec& a, const timespec& b ); +timespec& operator +=( timespec& a, const timespec& b ); +timespec& operator -=( timespec& a, const timespec& b ); +timespec& operator /=( timespec& a, unsigned b ); +timespec& operator /=( timespec& a, unsigned long b ); + +bool operator >( const timespec& a, const timespec& b ); +bool operator >=( const timespec& a, const timespec& b ); +bool operator <( const timespec& a, const timespec& b ); +bool operator <=( const timespec& a, const timespec& b ); +bool operator ==( const timespec& a, const timespec& b ); +bool operator !=( const timespec& a, const timespec& b ); + +namespace xmt { + +// delay execution at least on time interval t +__FIT_DECLSPEC void delay( timespec *interval, timespec *remain ); +// sleep at least up to time t +__FIT_DECLSPEC void sleep( timespec *abstime, timespec *real_time ); +// get precise time +__FIT_DECLSPEC void gettime( timespec *t ); + +} // namespace xmt + +#endif // __mt_time_h Modified: trunk/explore/include/mt/xmt.h =================================================================== --- trunk/explore/include/mt/xmt.h 2006-10-24 06:40:06 UTC (rev 1345) +++ trunk/explore/include/mt/xmt.h 2006-10-24 06:41:35 UTC (rev 1346) @@ -1,23 +1,14 @@ -// -*- C++ -*- Time-stamp: <06/09/18 13:32:44 ptr> +// -*- C++ -*- Time-stamp: <06/10/24 09:24:01 ptr> /* - * - * Copyright (c) 1997-1999, 2002-2005 + * Copyright (c) 1997-1999, 2002-2006 * Petr Ovtchenkov * * Portion Copyright (c) 1999-2001 * Parallel Graphics Ltd. * - * Licensed under the Academic Free License Version 2.1 + * Licensed under the Academic Free License version 3.0 * - * This material is provided "as is", with absolutely no warranty expressed - * or implied. Any use is at your own risk. - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies and - * that both that copyright notice and this permission notice appear - * in supporting documentation. */ #ifndef __XMT_H @@ -38,7 +29,6 @@ #ifdef WIN32 # include <windows.h> # include <memory> -# include <ctime> # include <limits> # define ETIME 62 /* timer expired */ # pragma warning( disable : 4290) @@ -46,9 +36,6 @@ #ifdef __unix # if defined( _REENTRANT ) && !defined(_NOTHREADS) -# if defined( __STL_USE_NEW_STYLE_HEADERS ) && defined( __SUNPRO_CC ) -# include <ctime> -# endif # ifdef _PTHREADS # include <pthread.h> # include <semaphore.h> @@ -67,37 +54,15 @@ # include <nwthread.h> # include <nwsemaph.h> # include <nwproc.h> -# include <ctime> # elif !defined(_NOTHREADS) // !_REENTRANT # define _NOTHREADS # endif #endif -#ifdef N_PLAT_NLM -# include <sys/time.h> // timespec, timespec_t -#endif - #include <cerrno> -#ifdef _WIN32 -extern "C" { +#include <mt/time.h> -typedef struct timespec { /* definition per POSIX.4 */ - time_t tv_sec; /* seconds */ - long tv_nsec; /* and nanoseconds */ -} timespec_t; - -} // extern "C" -#endif // _WIN32 - -#if defined(_WIN32) || defined(N_PLAT_NLM) -extern "C" { - -typedef struct timespec timestruc_t; /* definition per SVr4 */ - -} // extern "C" -#endif - #ifdef _REENTRANT # define MT_REENTRANT(point,nm) xmt::Locker nm(point) @@ -1512,11 +1477,15 @@ static __FIT_DECLSPEC void signal_exit( int sig ); // signal handler // sleep at least up to time t - static __FIT_DECLSPEC void sleep( timespec *t, timespec *e = 0 ); + static void sleep( timespec *t, timespec *e = 0 ) + { xmt::sleep( t, e ); } // delay execution at least on time interval t - static __FIT_DECLSPEC void delay( timespec *t, timespec *e = 0 ); + static void delay( timespec *t, timespec *e = 0 ) + { xmt::delay( t, e ); } // get precise time - static __FIT_DECLSPEC void gettime( timespec *t ); + static void gettime( timespec *t ) + { xmt::gettime( t ); } + #ifndef _WIN32 static __FIT_DECLSPEC void fork() throw( fork_in_parent, std::runtime_error ); static __FIT_DECLSPEC void become_daemon() throw( fork_in_parent, std::runtime_error ); @@ -1703,7 +1672,7 @@ #endif #if defined(__FIT_UITHREADS) || defined(_PTHREADS) timespec ct; - Thread::gettime( &ct ); + xmt::gettime( &ct ); ct += *interval; int ret = 0; @@ -1824,7 +1793,7 @@ #endif #if defined(__FIT_UITHREADS) || defined(_PTHREADS) timespec ct; - Thread::gettime( &ct ); + xmt::gettime( &ct ); ct += *interval; return this->wait_time( &ct ); @@ -1845,21 +1814,4 @@ namespace __impl = xmt; // compatibility -timespec operator +( const timespec& a, const timespec& b ); -timespec operator -( const timespec& a, const timespec& b ); -timespec operator /( const timespec& a, unsigned b ); -timespec operator /( const timespec& a, unsigned long b ); - -// timespec& operator =( timespec& a, const timespec& b ); -timespec& operator +=( timespec& a, const timespec& b ); -timespec& operator -=( timespec& a, const timespec& b ); -timespec& operator /=( timespec& a, unsigned b ); -timespec& operator /=( timespec& a, unsigned long b ); - -bool operator >( const timespec& a, const timespec& b ); -bool operator >=( const timespec& a, const timespec& b ); -bool operator <( const timespec& a, const timespec& b ); -bool operator <=( const timespec& a, const timespec& b ); -bool operator ==( const timespec& a, const timespec& b ); - #endif // __XMT_H Modified: trunk/explore/lib/mt/ChangeLog =================================================================== --- trunk/explore/lib/mt/ChangeLog 2006-10-24 06:40:06 UTC (rev 1345) +++ trunk/explore/lib/mt/ChangeLog 2006-10-24 06:41:35 UTC (rev 1346) @@ -1,3 +1,9 @@ +2006-10-24 Petr Ovtchenkov <pt...@is...> + + * xmt.h, xmt.cc, time.h, time.cc: move timespec functions to + time.cc; move sleep-like functions from Thread to xmt namespace + in time.cc. + 2006-10-10 Petr Ovtchenkov <pt...@is...> * thr_mgr.cc: don't kill not finished threads in ThreadMgr's Modified: trunk/explore/lib/mt/time.cc =================================================================== --- trunk/explore/lib/mt/time.cc 2006-10-24 06:40:06 UTC (rev 1345) +++ trunk/explore/lib/mt/time.cc 2006-10-24 06:41:35 UTC (rev 1346) @@ -1,36 +1,18 @@ -// -*- C++ -*- Time-stamp: <03/09/24 21:04:53 ptr> +// -*- C++ -*- Time-stamp: <06/10/24 09:26:53 ptr> /* - * - * Copyright (c) 2002, 2003 + * Copyright (c) 2002, 2003, 2006 * Petr Ovtchenkov * - * Licensed under the Academic Free License Version 1.2 + * Licensed under the Academic Free License version 3.0 * - * This material is provided "as is", with absolutely no warranty expressed - * or implied. Any use is at your own risk. - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies and - * that both that copyright notice and this permission notice appear - * in supporting documentation. */ -#ifdef __unix -# ifdef __HP_aCC -#pragma VERSIONID "@(#)$Id$" -# else -#ident "@(#)$Id$" -# endif -#endif - #include <mt/time.h> +#include <mt/xmt.h> #ifdef _WIN32 -#include <mt/xmt.h> - -__impl::Mutex _l; +xmt::Mutex _l; #endif std::string calendar_time( time_t t ) @@ -63,3 +45,260 @@ return std::string( ctime( &t ) ); #endif } + +timespec operator +( const timespec& a, const timespec& b ) +{ + timespec c; + + c.tv_sec = a.tv_sec; + c.tv_nsec = a.tv_nsec; + c.tv_sec += b.tv_sec; + c.tv_nsec += b.tv_nsec; + c.tv_sec += c.tv_nsec / 1000000000; + c.tv_nsec %= 1000000000; + + return c; +} + +timespec operator -( const timespec& a, const timespec& b ) +{ + timespec c; + + c.tv_sec = a.tv_sec > b.tv_sec ? a.tv_sec - b.tv_sec : 0; // out_of_range? + if ( a.tv_nsec >= b.tv_nsec ) { + c.tv_nsec = a.tv_nsec - b.tv_nsec; + } else if ( c.tv_sec > 0 ) { + --c.tv_sec; + c.tv_nsec = 1000000000 - b.tv_nsec + a.tv_nsec; + } else { + c.tv_nsec = 0; // out_of_range? + } + + return c; +} + +timespec operator /( const timespec& a, unsigned b ) +{ + timespec c; + double d = a.tv_sec + 1.0e-9 * a.tv_nsec; + d /= b; + + c.tv_nsec = int(1.0e9 * modf( d, &d ) + 0.5); + c.tv_sec = int(d); + + return c; +} + +timespec operator /( const timespec& a, unsigned long b ) +{ + timespec c; + double d = a.tv_sec + 1.0e-9 * a.tv_nsec; + d /= b; + + c.tv_nsec = int(1.0e9 * modf( d, &d ) + 0.5); + c.tv_sec = int(d); + + return c; +} + +timespec& operator +=( timespec& a, const timespec& b ) +{ + a.tv_sec += b.tv_sec; + a.tv_nsec += b.tv_nsec; + a.tv_sec += a.tv_nsec / 1000000000; + a.tv_nsec %= 1000000000; + + return a; +} + +timespec& operator -=( timespec& a, const timespec& b ) +{ + a.tv_sec = a.tv_sec > b.tv_sec ? a.tv_sec - b.tv_sec : 0; // out_of_range? + if ( a.tv_nsec >= b.tv_nsec ) { + a.tv_nsec -= b.tv_nsec; + } else if ( a.tv_sec > 0 ) { + --a.tv_sec; + a.tv_nsec += 1000000000 - b.tv_nsec; + } else { + a.tv_nsec = 0; // out_of_range? + } + + return a; +} + +timespec& operator /=( timespec& a, unsigned b ) +{ + double d = a.tv_sec + 1.0e-9 * a.tv_nsec; + d /= b; + + a.tv_nsec = int(1.0e9 * modf( d, &d ) + 0.5); + a.tv_sec = int(d); + + return a; +} + +timespec& operator /=( timespec& a, unsigned long b ) +{ + double d = a.tv_sec + 1.0e-9 * a.tv_nsec; + d /= b; + + a.tv_nsec = int(1.0e9 * modf( d, &d ) + 0.5); + a.tv_sec = int(d); + + return a; +} + +bool operator ==( const timespec& a, const timespec& b ) +{ + return (a.tv_sec == b.tv_sec) && (a.tv_nsec == b.tv_nsec); +} + +bool operator !=( const timespec& a, const timespec& b ) +{ + return (a.tv_sec != b.tv_sec) || (a.tv_nsec != b.tv_nsec); +} + +bool operator >( const timespec& a, const timespec& b ) +{ + if ( a.tv_sec > b.tv_sec ) { + return true; + } else if ( b.tv_sec > a.tv_sec ) { + return false; + } + + return a.tv_nsec > b.tv_nsec; +} + +bool operator >=( const timespec& a, const timespec& b ) +{ + if ( a.tv_sec > b.tv_sec ) { + return true; + } else if ( b.tv_sec > a.tv_sec ) { + return false; + } + + return a.tv_nsec >= b.tv_nsec; +} + +bool operator <( const timespec& a, const timespec& b ) +{ + if ( a.tv_sec < b.tv_sec ) { + return true; + } else if ( b.tv_sec < a.tv_sec ) { + return false; + } + + return a.tv_nsec < b.tv_nsec; +} + +bool operator <=( const timespec& a, const timespec& b ) +{ + if ( a.tv_sec < b.tv_sec ) { + return true; + } else if ( b.tv_sec < a.tv_sec ) { + return false; + } + + return a.tv_nsec <= b.tv_nsec; +} + +namespace xmt { + +__FIT_DECLSPEC +void delay( timespec *interval, timespec *remain ) +{ +#ifdef __unix + nanosleep( interval, remain ); +#endif +#ifdef WIN32 + unsigned ms = interval->tv_sec * 1000 + interval->tv_nsec / 1000000; + Sleep( ms ); + if ( remain != 0 ) { // M$ not return remain time interval + remain->tv_sec = 0; + remain->tv_nsec = 0; + } +#endif +#ifdef __FIT_NETWARE + unsigned ms = interval->tv_sec * 1000 + interval->tv_nsec / 1000000; + ::delay( ms ); + if ( remain != 0 ) { // Novell not return remain time interval + remain->tv_sec = 0; + remain->tv_nsec = 0; + } +#endif +} + +__FIT_DECLSPEC +void sleep( timespec *abstime, timespec *real_time ) +{ +#ifdef __unix + timespec ct; + gettime( &ct ); + timespec st = *abstime; + + if ( st > ct ) { + st -= ct; + nanosleep( &st, real_time ); + if ( real_time != 0 ) { + *real_time += ct; + } + } else if ( real_time != 0 ) { + *real_time = ct; + } +#endif +#ifdef WIN32 + time_t ct = time( 0 ); + time_t _conv = abstime->tv_sec * 1000 + abstime->tv_nsec / 1000000; + + unsigned ms = _conv >= ct ? _conv - ct : 1; + Sleep( ms ); + if ( real_time != 0 ) { // M$ not return elapsed time interval + real_time->tv_sec = abstime->tv_sec; + real_time->tv_nsec = abstime->tv_nsec; + } +#endif +#ifdef __FIT_NETWARE + time_t ct = time( 0 ); + time_t _conv = abstime->tv_sec * 1000 + abstime->tv_nsec / 1000000; + + unsigned ms = _conv >= ct ? _conv - ct : 1; + ::delay( ms ); + if ( real_time != 0 ) { // Novell not return elapsed time interval + real_time->tv_sec = abstime->tv_sec; + real_time->tv_nsec = abstime->tv_nsec; + } +#endif +} + +__FIT_DECLSPEC +void gettime( timespec *t ) +{ +#if defined(__linux) || defined(__FreeBSD__) || defined(__OpenBSD__) + timeval tv; + gettimeofday( &tv, 0 ); + TIMEVAL_TO_TIMESPEC( &tv, t ); +#elif defined( WIN32 ) + union { + FILETIME ft; // 100 ns intervals since Jan 1 1601 (UTC) + __int64 t; + } ft; + GetSystemTimeAsFileTime( &ft.ft ); + t->tv_sec = int(ft.t / (__int64)10000000 - (__int64)(11644473600)); // 60 * 60 * 24 * 134774, 1970 - 1601 + t->tv_nsec = int(ft.t % (__int64)(10000000)) * 100; + + //time_t ct = time( 0 ); + //t->tv_sec = ct; // ct / 1000; + //t->tv_nsec = 0; // (ct % 1000) * 1000000; +#elif defined(__sun) || defined(__hpux) + clock_gettime( CLOCK_REALTIME, t ); +#elif defined(__FIT_NETWARE) + time_t ct = time(0); // GetHighResolutionTimer (ret current time in 100 microsec increments) + // GetSuperHighResolutionTimer() (ret current time in 838 nanosec increments) + t->tv_sec = ct; + t->tv_nsec = 0; +#else +#error "You should implement OS-dependent precise clock" +#endif +} + +} // namespace xmt Modified: trunk/explore/lib/mt/xmt.cc =================================================================== --- trunk/explore/lib/mt/xmt.cc 2006-10-24 06:40:06 UTC (rev 1345) +++ trunk/explore/lib/mt/xmt.cc 2006-10-24 06:41:35 UTC (rev 1346) @@ -1,4 +1,4 @@ -// -*- C++ -*- Time-stamp: <06/09/22 22:19:40 ptr> +// -*- C++ -*- Time-stamp: <06/10/24 09:32:17 ptr> /* * Copyright (c) 1997-1999, 2002-2006 @@ -711,103 +711,6 @@ Thread::_exit( 0 ); } -__FIT_DECLSPEC -void Thread::delay( timespec *interval, timespec *remain ) -{ -#ifdef __unix - nanosleep( interval, remain ); -#endif -#ifdef WIN32 - unsigned ms = interval->tv_sec * 1000 + interval->tv_nsec / 1000000; - Sleep( ms ); - if ( remain != 0 ) { // M$ not return remain time interval - remain->tv_sec = 0; - remain->tv_nsec = 0; - } -#endif -#ifdef __FIT_NETWARE - unsigned ms = interval->tv_sec * 1000 + interval->tv_nsec / 1000000; - ::delay( ms ); - if ( remain != 0 ) { // Novell not return remain time interval - remain->tv_sec = 0; - remain->tv_nsec = 0; - } -#endif -} - -__FIT_DECLSPEC -void Thread::sleep( timespec *abstime, timespec *real_time ) -{ -#ifdef __unix - timespec ct; - gettime( &ct ); - timespec st = *abstime; - - if ( st > ct ) { - st -= ct; - nanosleep( &st, real_time ); - if ( real_time != 0 ) { - *real_time += ct; - } - } else if ( real_time != 0 ) { - *real_time = ct; - } -#endif -#ifdef WIN32 - time_t ct = time( 0 ); - time_t _conv = abstime->tv_sec * 1000 + abstime->tv_nsec / 1000000; - - unsigned ms = _conv >= ct ? _conv - ct : 1; - Sleep( ms ); - if ( real_time != 0 ) { // M$ not return elapsed time interval - real_time->tv_sec = abstime->tv_sec; - real_time->tv_nsec = abstime->tv_nsec; - } -#endif -#ifdef __FIT_NETWARE - time_t ct = time( 0 ); - time_t _conv = abstime->tv_sec * 1000 + abstime->tv_nsec / 1000000; - - unsigned ms = _conv >= ct ? _conv - ct : 1; - ::delay( ms ); - if ( real_time != 0 ) { // Novell not return elapsed time interval - real_time->tv_sec = abstime->tv_sec; - real_time->tv_nsec = abstime->tv_nsec; - } -#endif -} - -__FIT_DECLSPEC -void Thread::gettime( timespec *t ) -{ -#if defined(__linux) || defined(__FreeBSD__) || defined(__OpenBSD__) - timeval tv; - gettimeofday( &tv, 0 ); - TIMEVAL_TO_TIMESPEC( &tv, t ); -#elif defined( WIN32 ) - union { - FILETIME ft; // 100 ns intervals since Jan 1 1601 (UTC) - __int64 t; - } ft; - GetSystemTimeAsFileTime( &ft.ft ); - t->tv_sec = int(ft.t / (__int64)10000000 - (__int64)(11644473600)); // 60 * 60 * 24 * 134774, 1970 - 1601 - t->tv_nsec = int(ft.t % (__int64)(10000000)) * 100; - - //time_t ct = time( 0 ); - //t->tv_sec = ct; // ct / 1000; - //t->tv_nsec = 0; // (ct % 1000) * 1000000; -#elif defined(__sun) || defined(__hpux) - clock_gettime( CLOCK_REALTIME, t ); -#elif defined(__FIT_NETWARE) - time_t ct = time(0); // GetHighResolutionTimer (ret current time in 100 microsec increments) - // GetSuperHighResolutionTimer() (ret current time in 838 nanosec increments) - t->tv_sec = ct; - t->tv_nsec = 0; -#else -#error "You should implement OS-dependent precise clock" -#endif -} - #ifndef _WIN32 __FIT_DECLSPEC void Thread::fork() throw( fork_in_parent, std::runtime_error ) @@ -1102,155 +1005,3 @@ } } // namespace xmt - - -timespec operator +( const timespec& a, const timespec& b ) -{ - timespec c; - - c.tv_sec = a.tv_sec; - c.tv_nsec = a.tv_nsec; - c.tv_sec += b.tv_sec; - c.tv_nsec += b.tv_nsec; - c.tv_sec += c.tv_nsec / 1000000000; - c.tv_nsec %= 1000000000; - - return c; -} - -timespec operator -( const timespec& a, const timespec& b ) -{ - timespec c; - - c.tv_sec = a.tv_sec > b.tv_sec ? a.tv_sec - b.tv_sec : 0; // out_of_range? - if ( a.tv_nsec >= b.tv_nsec ) { - c.tv_nsec = a.tv_nsec - b.tv_nsec; - } else if ( c.tv_sec > 0 ) { - --c.tv_sec; - c.tv_nsec = 1000000000 - b.tv_nsec + a.tv_nsec; - } else { - c.tv_nsec = 0; // out_of_range? - } - - return c; -} - -timespec operator /( const timespec& a, unsigned b ) -{ - timespec c; - double d = a.tv_sec + 1.0e-9 * a.tv_nsec; - d /= b; - - c.tv_nsec = int(1.0e9 * modf( d, &d ) + 0.5); - c.tv_sec = int(d); - - return c; -} - -timespec operator /( const timespec& a, unsigned long b ) -{ - timespec c; - double d = a.tv_sec + 1.0e-9 * a.tv_nsec; - d /= b; - - c.tv_nsec = int(1.0e9 * modf( d, &d ) + 0.5); - c.tv_sec = int(d); - - return c; -} - -timespec& operator +=( timespec& a, const timespec& b ) -{ - a.tv_sec += b.tv_sec; - a.tv_nsec += b.tv_nsec; - a.tv_sec += a.tv_nsec / 1000000000; - a.tv_nsec %= 1000000000; - - return a; -} - -timespec& operator -=( timespec& a, const timespec& b ) -{ - a.tv_sec = a.tv_sec > b.tv_sec ? a.tv_sec - b.tv_sec : 0; // out_of_range? - if ( a.tv_nsec >= b.tv_nsec ) { - a.tv_nsec -= b.tv_nsec; - } else if ( a.tv_sec > 0 ) { - --a.tv_sec; - a.tv_nsec += 1000000000 - b.tv_nsec; - } else { - a.tv_nsec = 0; // out_of_range? - } - - return a; -} - -timespec& operator /=( timespec& a, unsigned b ) -{ - double d = a.tv_sec + 1.0e-9 * a.tv_nsec; - d /= b; - - a.tv_nsec = int(1.0e9 * modf( d, &d ) + 0.5); - a.tv_sec = int(d); - - return a; -} - -timespec& operator /=( timespec& a, unsigned long b ) -{ - double d = a.tv_sec + 1.0e-9 * a.tv_nsec; - d /= b; - - a.tv_nsec = int(1.0e9 * modf( d, &d ) + 0.5); - a.tv_sec = int(d); - - return a; -} - -bool operator ==( const timespec& a, const timespec& b ) -{ - return (a.tv_sec == b.tv_sec) && (a.tv_nsec == b.tv_nsec); -} - -bool operator >( const timespec& a, const timespec& b ) -{ - if ( a.tv_sec > b.tv_sec ) { - return true; - } else if ( b.tv_sec > a.tv_sec ) { - return false; - } - - return a.tv_nsec > b.tv_nsec; -} - -bool operator >=( const timespec& a, const timespec& b ) -{ - if ( a.tv_sec > b.tv_sec ) { - return true; - } else if ( b.tv_sec > a.tv_sec ) { - return false; - } - - return a.tv_nsec >= b.tv_nsec; -} - -bool operator <( const timespec& a, const timespec& b ) -{ - if ( a.tv_sec < b.tv_sec ) { - return true; - } else if ( b.tv_sec < a.tv_sec ) { - return false; - } - - return a.tv_nsec < b.tv_nsec; -} - -bool operator <=( const timespec& a, const timespec& b ) -{ - if ( a.tv_sec < b.tv_sec ) { - return true; - } else if ( b.tv_sec < a.tv_sec ) { - return false; - } - - return a.tv_nsec <= b.tv_nsec; -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-24 06:40:11
|
Revision: 1345 http://svn.sourceforge.net/complement/?rev=1345&view=rev Author: complement Date: 2006-10-23 23:40:06 -0700 (Mon, 23 Oct 2006) Log Message: ----------- typo Modified Paths: -------------- trunk/explore/perf/STL/compare.tex Modified: trunk/explore/perf/STL/compare.tex =================================================================== --- trunk/explore/perf/STL/compare.tex 2006-10-18 13:00:25 UTC (rev 1344) +++ trunk/explore/perf/STL/compare.tex 2006-10-24 06:40:06 UTC (rev 1345) @@ -1,4 +1,4 @@ -% -*- LaTeX -*- Time-stamp: <06/10/18 10:38:28 ptr> +% -*- LaTeX -*- Time-stamp: <06/10/19 00:39:30 ptr> \documentclass[a4paper]{article} @@ -547,7 +547,7 @@ ropes; \item if you use strings with sizes $0.5$K--$50$K then strings implementation from native \libstd{} is a good choice; this will be good too if you only pass - strings as parameters, without modifictions (but this is bad programming + strings as parameters, without modifications (but this is bad programming technique nevertheless); \item if you general work is modification of strings with sizes less then $0.5$K, the strings from \STLport{} are for you; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-18 13:00:37
|
Revision: 1344 http://svn.sourceforge.net/complement/?rev=1344&view=rev Author: complement Date: 2006-10-18 06:00:25 -0700 (Wed, 18 Oct 2006) Log Message: ----------- pictures; AMD Opteron(tm) Processor 252, 2590.665 MHz, x2 Modified Paths: -------------- trunk/explore/perf/stem/stemload.gplot Added Paths: ----------- trunk/explore/perf/stem/delivery.png trunk/explore/perf/stem/processed.png Added: trunk/explore/perf/stem/delivery.png =================================================================== (Binary files differ) Property changes on: trunk/explore/perf/stem/delivery.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/explore/perf/stem/processed.png =================================================================== (Binary files differ) Property changes on: trunk/explore/perf/stem/processed.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/explore/perf/stem/stemload.gplot =================================================================== --- trunk/explore/perf/stem/stemload.gplot 2006-10-18 12:31:01 UTC (rev 1343) +++ trunk/explore/perf/stem/stemload.gplot 2006-10-18 13:00:25 UTC (rev 1344) @@ -1,17 +1,24 @@ #!/usr/bin/env gnuplot +set terminal png + set xlabel "$t$, sec" set ylabel "$\Delta t$, sec" set logscale y +set output "delivery.png" + plot 'load.log' using ($2):($3) w d lt 2, \ 'stat.dat' using ($1):($2) w l lt 4, \ 'stat.dat' using ($1):($2):($3) w yerrorbars lt 4 -pause (-1) +# pause (-1) unset logscale set ylabel "messeges, sec$^{-1}$" + +set output "processed.png" + plot 'stat.dat' using ($1):($4) w l -pause (-1) +#pause (-1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-18 12:31:17
|
Revision: 1343 http://svn.sourceforge.net/complement/?rev=1343&view=rev Author: complement Date: 2006-10-18 05:31:01 -0700 (Wed, 18 Oct 2006) Log Message: ----------- scheme of test Added Paths: ----------- trunk/explore/perf/stem/test_scheme.fig trunk/explore/perf/stem/test_scheme.png trunk/explore/perf/stem/test_time_scheme.fig trunk/explore/perf/stem/test_time_scheme.png Added: trunk/explore/perf/stem/test_scheme.fig =================================================================== --- trunk/explore/perf/stem/test_scheme.fig (rev 0) +++ trunk/explore/perf/stem/test_scheme.fig 2006-10-18 12:31:01 UTC (rev 1343) @@ -0,0 +1,49 @@ +#FIG 3.2 Produced by xfig version 3.2.5-alpha5 +Landscape +Center +Inches +Letter +100.00 +Single +-2 +1200 2 +6 3450 300 5400 1350 +1 1 0 1 0 7 50 -1 -1 0.000 1 0.0000 4425 825 975 525 4425 825 5400 1350 +4 1 0 50 -1 20 10 0.0000 4 135 990 4425 825 Echo Client\001 +-6 +6 3450 3300 5400 4350 +1 1 0 1 0 7 50 -1 -1 0.000 1 0.0000 4425 3825 975 525 4425 3825 5400 4350 +4 1 0 50 -1 20 10 0.0000 4 135 990 4425 3825 Echo Client\001 +-6 +6 3450 1800 5400 2850 +1 1 0 1 0 7 50 -1 -1 0.000 1 0.0000 4425 2325 975 525 4425 2325 5400 2850 +4 1 0 50 -1 20 10 0.0000 4 135 990 4425 2325 Echo Client\001 +-6 +6 375 1800 2175 3000 +1 1 0 1 0 7 50 -1 -1 0.000 1 0.0000 1275 2400 900 600 1275 2400 2175 3000 +4 1 0 50 -1 20 10 0.0000 4 135 990 1275 2475 Echo Server\001 +-6 +3 2 0 1 0 7 50 -1 -1 0.000 0 1 0 3 + 0 0 1.00 60.00 120.00 + 3450 750 2250 1050 1425 1950 + 0.000 -1.000 0.000 +3 2 0 1 0 7 50 -1 -1 0.000 0 1 0 3 + 0 0 1.00 60.00 120.00 + 1575 1950 2700 1650 3525 1050 + 0.000 -1.000 0.000 +3 2 0 1 0 7 50 -1 -1 0.000 0 1 0 3 + 0 0 1.00 60.00 120.00 + 3525 2100 2775 2100 1950 2250 + 0.000 -1.000 0.000 +3 2 0 1 0 7 50 -1 -1 0.000 0 1 0 3 + 0 0 1.00 60.00 120.00 + 2025 2325 2850 2400 3450 2325 + 0.000 -1.000 0.000 +3 2 0 1 0 7 50 -1 -1 0.000 0 1 0 3 + 0 0 1.00 60.00 120.00 + 3675 3525 2700 3075 1650 2700 + 0.000 -1.000 0.000 +3 2 0 1 0 7 50 -1 -1 0.000 0 1 0 3 + 0 0 1.00 60.00 120.00 + 1500 2775 2325 3600 3600 3750 + 0.000 -1.000 0.000 Added: trunk/explore/perf/stem/test_scheme.png =================================================================== (Binary files differ) Property changes on: trunk/explore/perf/stem/test_scheme.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/explore/perf/stem/test_time_scheme.fig =================================================================== --- trunk/explore/perf/stem/test_time_scheme.fig (rev 0) +++ trunk/explore/perf/stem/test_time_scheme.fig 2006-10-18 12:31:01 UTC (rev 1343) @@ -0,0 +1,60 @@ +#FIG 3.2 Produced by xfig version 3.2.5-alpha5 +Landscape +Center +Inches +Letter +100.00 +Single +-2 +1200 2 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 + 0 0 1.00 60.00 120.00 + 1200 900 1200 4800 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 + 0 0 1.00 60.00 120.00 + 4275 900 4275 4800 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 + 0 0 1.00 60.00 120.00 + 4275 1425 1200 1875 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 + 0 0 1.00 60.00 120.00 + 4275 1950 1200 2475 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 + 0 0 1.00 60.00 120.00 + 1200 2700 4275 3150 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 + 0 0 1.00 60.00 120.00 + 1200 3600 4275 4125 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 + 4275 1425 4575 1425 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 + 4275 1950 4575 1950 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 + 4275 4125 4575 4125 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 + 0 0 1.00 60.00 120.00 + 0 0 1.00 60.00 120.00 + 4575 1425 4575 1950 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 + 0 0 1.00 60.00 120.00 + 0 0 1.00 60.00 120.00 + 4575 1950 4575 4125 +3 2 0 1 0 7 50 -1 -1 0.000 0 1 0 3 + 0 0 1.00 60.00 120.00 + 1200 1875 750 2250 1200 2700 + 0.000 -1.000 0.000 +3 2 0 1 0 7 50 -1 -1 0.000 0 1 0 3 + 0 0 1.00 60.00 120.00 + 1200 2475 750 3075 1200 3600 + 0.000 -1.000 0.000 +4 1 0 50 -1 20 10 0.0000 4 135 990 1200 600 Echo Server\001 +4 1 0 50 -1 20 10 0.0000 4 135 990 4275 600 Echo Client\001 +4 1 0 50 -1 20 10 0.0000 4 165 900 2625 1350 Message #1\001 +4 1 0 50 -1 20 10 0.0000 4 165 900 2625 2025 Message #2\001 +4 1 0 50 -1 20 10 0.0000 4 165 900 2925 2775 Message #1\001 +4 1 0 50 -1 20 10 0.0000 4 165 900 2925 3675 Message #2\001 +4 1 0 50 -1 20 10 0.0000 4 120 90 1425 4650 t\001 +4 1 0 50 -1 20 10 0.0000 4 120 90 4500 4650 t\001 +4 0 0 50 -1 20 10 0.0000 4 165 1080 4800 1575 Random delay\001 +4 0 0 50 -1 20 10 0.0000 4 135 990 4800 1875 Random size\001 +4 0 0 50 -1 20 10 0.0000 4 165 1170 4875 3075 Delivery time\001 Added: trunk/explore/perf/stem/test_time_scheme.png =================================================================== (Binary files differ) Property changes on: trunk/explore/perf/stem/test_time_scheme.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-18 11:45:02
|
Revision: 1342 http://svn.sourceforge.net/complement/?rev=1342&view=rev Author: complement Date: 2006-10-18 04:44:54 -0700 (Wed, 18 Oct 2006) Log Message: ----------- reduce threads to 1000 Modified Paths: -------------- trunk/explore/perf/stem/stemload/stemload.cc Modified: trunk/explore/perf/stem/stemload/stemload.cc =================================================================== --- trunk/explore/perf/stem/stemload/stemload.cc 2006-10-18 11:29:01 UTC (rev 1341) +++ trunk/explore/perf/stem/stemload/stemload.cc 2006-10-18 11:44:54 UTC (rev 1342) @@ -145,7 +145,7 @@ tm.tv_sec = 0; tm.tv_nsec = 100000000; - for ( int i = 0; i < 2000; ++i ) { + for ( int i = 0; i < 1000; ++i ) { new Thread( client_thread, (void *)i, 0, Thread::detached, PTHREAD_STACK_MIN * 2 ); Thread::delay( &tm ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-18 11:29:30
|
Revision: 1341 http://svn.sourceforge.net/complement/?rev=1341&view=rev Author: complement Date: 2006-10-18 04:29:01 -0700 (Wed, 18 Oct 2006) Log Message: ----------- Resulting report; reorganize building and running tests; add tests about template expression; more tests with malloc_alloc; compare with older results and AMD64 Public variant. Linux fighter 2.6.16.26 #3 SMP Tue Sep 5 23:23:37 MSD 2006 i686 athlon-4 i386 GNU/Linux processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(tm) MP 1500+ stepping : 2 cpu MHz : 1333.544 cache size : 256 KB bogomips : 2670.45 processor : 1 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(tm) Processor stepping : 2 cpu MHz : 1333.544 cache size : 256 KB bogomips : 2667.14 c++ (GCC) 4.1.1 Modified Paths: -------------- trunk/explore/perf/STL/compare.tex trunk/explore/perf/STL/stream/STLport-malloc.dat trunk/explore/perf/STL/stream/STLport.dat trunk/explore/perf/STL/stream/libstdc++.dat trunk/explore/perf/STL/stream/stdio.dat trunk/explore/perf/STL/stream/unistd.dat trunk/explore/perf/STL/string/STLport-malloc.dat trunk/explore/perf/STL/string/STLport-newalloc.dat trunk/explore/perf/STL/string/STLport-ropes.dat trunk/explore/perf/STL/string/STLport.dat trunk/explore/perf/STL/string/libstd++.dat trunk/explore/perf/STL/string/ropes/libstdc++.dat trunk/explore/perf/STL/string/ropes/rope.dat trunk/explore/perf/STL/string/ropes/string.dat trunk/explore/perf/STL/string-MT/STLport-malloc.dat trunk/explore/perf/STL/string-MT/STLport-newalloc.dat trunk/explore/perf/STL/string-MT/STLport-ropes.dat trunk/explore/perf/STL/string-MT/STLport.dat trunk/explore/perf/STL/string-MT/libstd++.dat trunk/explore/perf/STL/strings.gplot Property Changed: ---------------- trunk/explore/perf/STL/ Property changes on: trunk/explore/perf/STL ___________________________________________________________________ Name: svn:ignore - *.pcl compare.dvi compare.aux compare.toc compare.log compare.ps compare.pdf alloc.eps alloc.tex alloc-2_2_5.eps alloc-2_2_5.tex strings-MT-t-libstd.eps strings-MT-t-libstd.tex strings-MT-t-stlp-m.eps strings-MT-t-stlp-m.tex strings-MT-t-stlp-n.eps strings-MT-t-stlp-n.tex strings-MT-t-stlp-r.eps strings-MT-t-stlp-r.tex str-rope.eps str-rope.tex str-rope-1.eps str-rope-1.tex strings-MT.eps strings-MT.tex strings-MT2.eps strings-MT2.tex strings.eps strings.tex streams.eps streams.tex streams-1.eps streams-1.tex str-rope-2.eps str-rope-2.tex intel-amd.eps intel-amd.tex build + *.pcl compare.dvi compare.aux compare.toc compare.log compare.ps alloc.eps alloc.tex alloc-2_2_5.eps alloc-2_2_5.tex strings-MT-t-libstd.eps strings-MT-t-libstd.tex strings-MT-t-stlp-m.eps strings-MT-t-stlp-m.tex strings-MT-t-stlp-n.eps strings-MT-t-stlp-n.tex strings-MT-t-stlp-r.eps strings-MT-t-stlp-r.tex str-rope.eps str-rope.tex str-rope-1.eps str-rope-1.tex strings-MT.eps strings-MT.tex strings-MT2.eps strings-MT2.tex strings.eps strings.tex streams.eps streams.tex streams-1.eps streams-1.tex str-rope-2.eps str-rope-2.tex intel-amd.eps intel-amd.tex amd-amd64.eps amd-amd64.tex build Modified: trunk/explore/perf/STL/compare.tex =================================================================== --- trunk/explore/perf/STL/compare.tex 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/compare.tex 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,4 +1,4 @@ -% -*- LaTeX -*- Time-stamp: <06/10/17 01:47:22 ptr> +% -*- LaTeX -*- Time-stamp: <06/10/18 10:38:28 ptr> \documentclass[a4paper]{article} @@ -23,7 +23,7 @@ \newcommand{\CPP}{\mbox{{C}{+}{+}}} \title{Comparison of Strings Implementations \\ in \CPP{} language} -\author{Petr Ovtchenkov\footnote{\copiright{} Petr Ovtchenkov, 2003--2006. Licensed under the Academic Free License version 3{.}0.}} +\author{Petr Ovtchenkov\footnote{\copyright{} Petr Ovtchenkov, 2003--2006. Licensed under the Academic Free License version 3{.}0.}} \begin{document} @@ -31,7 +31,7 @@ \begin{abstract} This article present comparison of STL strings with copy-on-write and -non-copy-on-write argorithms, based on \STLport{} strings and ropes +non-copy-on-write argorithms, based on \STLport{} strings, ropes and \libstd{} implementations. Some related issues, like fstream and stringstream performance @@ -152,8 +152,10 @@ \input amd-amd64.tex \end{center} \caption{Progress of systems over 3 years: two processors systems. See platforms description - on page~\pageref{AMD}. This graphics show that higher frequency isn't - synonym of better perfomance\label{amd-amd64}} + on page~\pageref{AMD}. This graphics show that progress was not only in + frequency (computer \#2 has twice frequency over \#1, but most times + are more then twice better), + but in core architecture too (or this is compiler?)\label{amd-amd64}} \end{figure} \subsection{String copy\label{params-string} (test \#4)} @@ -197,14 +199,15 @@ \lstinputlisting{string/params-short/str.cc} Test \#6 is default \STLport{}, with ``short string optimization'', while -test \#7 present results without ``short string optimization''. In case of \libstd{} +test \#7 present results without ``short string optimization''\footnote{define +\texttt{\_STLP\_DONT\_USE\_SHORT\_STRING\_OPTIM}}. In case of \libstd{} tests \#6 and \#7 are the same. \STLport{} was build with ``short string'' size 16. ``Short strings optimization'' give test time $3\%$ longer then without ones (for strings with size 20, this test case not shown on figures). But you see, for ``short'' strings test with ``short'' strings optimization -show time that $43\%$ better! +show time that $64\%$ better! \subsection{String proxy objects\label{add-string-proxy} (tests \#8 and \#9)} @@ -229,11 +232,13 @@ \lstinputlisting{string/add-proxy/str.cc} -Test \#8 is default \STLport{}, in test \#9 used temporary string objects. +Test \#8 is default \STLport{}, in test \#9 temporary string objects +in use\footnote{define \texttt{\_STLP\_USE\_TEMPLATE\_EXPRESSION} turn on}. For \libstd{} both \#8 and \#9 are the same test. The figure~\ref{STLport-gpp-strings} show that \STLport{} implementation +in comparison with \libstd{} give better results even without expression templates. But with expression templates the results are better more then twice. @@ -267,8 +272,10 @@ \begin{center} \input alloc-2_2_5.tex \end{center} - \caption{Role of memory allocator in strings implementation (\STLport), \texttt{glibc} 2{.}2{.}5. - Wall time for tests. \label{STLport-alloc-ii-ii-v-strings}} + \caption{Role of memory allocator in strings implementation (\STLport), \texttt{glibc} 2{.}2{.}5, compiler GNU gcc 3{.}4{.}4. + Wall time for tests. + The hardware are the same as for results on figure~\ref{STLport-alloc-strings}. + \label{STLport-alloc-ii-ii-v-strings}} \end{figure} Let's repeat tests from section~\ref{TestsDescr} for \STLport{} with different @@ -284,10 +291,20 @@ The tests 4 and 5 show that cost of \verb|malloc| system call---\verb|node_alloc| reuse once allocated memory. But copy of string's content still present (compare with time of -\libstd{} on fig.~\ref{STLport-gpp-strings}). In the past (\verb|glibc| 2{.}2{.}5) +\libstd{} on fig.~\ref{STLport-gpp-strings}). In the past (\verb|glibc| 2{.}2{.}5, +compiler GNU gcc 3{.}4{.}4) the cost of \verb|malloc| was significant, but now it near zero (compare graphics \ref{STLport-alloc-strings} and \ref{STLport-alloc-ii-ii-v-strings}). +The hardware are the same on figures~\ref{STLport-alloc-strings} +and \ref{STLport-alloc-ii-ii-v-strings}, different Linux kernel +(2{.}6{.}16{.}26 vs 2{.}6{.}12{.}5), different +glibc (2{.}3{.}6 vs 2{.}2{.}5) and different versions of compiler (gcc 4{.}1{.}1 vs 3{.}4{.}4). + +Tests for parameters pass (by referenece, \#5) give the same results, in tests +\#7 (short strings, no ``short string optimization'') older implementation slightly win. +But in other tests fresh implementation is much better! + \section{Strings in Multithreaded Environment} Memory allocation performance in single and multithreaded environments @@ -299,7 +316,7 @@ except that every test run simultaneously in two threads. -\subsection{Comparison of \STLport{} and \libstd in multi-threaded applications} +\subsection{Comparison of \STLport{} and \libstd{} in multi-threaded applications} \begin{figure} \begin{center} @@ -514,31 +531,38 @@ \lstinputlisting{stream/sstream-raw/str2.c} +We see that format output to file show near the same time +for \STLport{}, \libstd{} and (even!) C \verb|fprintf|. For raw write +the \STLport's implementation is a bit better than \libstd{} (C \verb|fwrite| +show best results here, but breakaway is minimal; all has huge advantage over +unbuffered output). With raw write to string stream +(or in char buffer in case of C) the pure C variant is 3--4 times faster, +but this not what iostreams was intended for. + \section{Conclusions} This tests show that \begin{itemize} \item for processing long strings (greater than 50K) the best choice is ropes; - \item if you use strings with sizes $0.5$K--$50$K then strings implementation in - \libstd{} is a best choice; this will be good too if you only pass - strings as parameters, without modifictions; - \item if you work (modify) strings with sizes less then $0.5$K, + \item if you use strings with sizes $0.5$K--$50$K then strings implementation + from native \libstd{} is a good choice; this will be good too if you only pass + strings as parameters, without modifictions (but this is bad programming + technique nevertheless); + \item if you general work is modification of strings with sizes less then $0.5$K, the strings from \STLport{} are for you; \item the time of advantage of \texttt{node\_alloc} in \STLport{} is in the past; progress in allocation algorithms in core system eliminate positive - effect of \texttt{node\_alloc} in single-threaded applications and + effect of \texttt{node\_alloc} in single-threaded applications and demonstrate significant advantage of core system allocators in multi-threaded - applications. + applications; + \item no valuable performance advantage of C format output over \CPP{} iosreams; + \item unbuffered output has ugly performance (is it new fact for you?); + \item no reasons to use \verb|node_alloc| in \STLport{}---\verb|malloc_alloc| + show better (or significant better) results; + \item string proxy object (aka expression template) technique is very useful. \end{itemize} -As for streams, we see that format output to file show near the same time -for \STLport{}, \libstd{} and (even!) C \verb|fprintf|. For raw write -the \STLport's implementation is a bit better than \libstd{} (and both are -significant better than C \verb|fwrite| and all has huge advantage over -unbuffered output). With raw write to string stream -(or in char buffer in case of C) the pure C variant is 3--4 times faster. - % As about Intel$^{\mbox{\tiny\textregistered}}$ vs. AMD$^{\mbox{\tiny\textregistered}}$, no comments---see figure~\ref{intel-amd} on page~\pageref{intel-amd}. \section{References} Modified: trunk/explore/perf/STL/stream/STLport-malloc.dat =================================================================== --- trunk/explore/perf/STL/stream/STLport-malloc.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/stream/STLport-malloc.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,3 +1,3 @@ -1 3.80744 0.0953505 0.155609 0.0175693 3.98723 0.117757 -2 0.836452 0.0205887 0.440827 0.0309237 1.28658 0.027712 -3 1.47209 0.0248532 0.119207 0.0158806 1.59693 0.0123747 +1 3.84824 0.111577 0.153209 0.0229833 4.02322 0.106244 +2 0.884055 0.0295044 0.400025 0.0289569 1.29178 0.0184357 +3 1.47689 0.0320919 0.120007 0.0155957 1.60563 0.0336307 Modified: trunk/explore/perf/STL/stream/STLport.dat =================================================================== --- trunk/explore/perf/STL/stream/STLport.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/stream/STLport.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,3 +1,3 @@ -1 3.67543 0.143584 0.17201 0.0118668 3.85366 0.138982 -2 0.832052 0.0293957 0.438027 0.040529 1.28046 0.0264711 -3 1.5585 0.020878 0.113207 0.0176239 1.68422 0.0360132 +1 3.70383 0.123509 0.151209 0.0310787 3.86542 0.13413 +2 0.872054 0.0349651 0.393224 0.0286262 1.27176 0.0201138 +3 1.5557 0.0268016 0.137608 0.0158199 1.70269 0.0325219 Modified: trunk/explore/perf/STL/stream/libstdc++.dat =================================================================== --- trunk/explore/perf/STL/stream/libstdc++.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/stream/libstdc++.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,3 +1,3 @@ -1 3.76703 0.0884778 0.118807 0.019105 3.91713 0.108897 -2 1.30048 0.0235607 0.283217 0.0249045 1.59446 0.0244671 -3 1.20247 0.0146651 0.140408 0.015332 1.35296 0.0283691 +1 3.76263 0.0822574 0.124007 0.0154928 3.91248 0.109651 +2 1.30888 0.0334109 0.280417 0.027567 1.60143 0.0237134 +3 1.25248 0.0563582 0.135208 0.0310787 1.39578 0.0491862 Modified: trunk/explore/perf/STL/stream/stdio.dat =================================================================== --- trunk/explore/perf/STL/stream/stdio.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/stream/stdio.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,3 +1,3 @@ -1 3.2666 0.0542384 0.0948055 0.0196011 3.36694 0.0608409 -2 0.953259 0.0429743 0.178411 0.0198567 1.1415 0.03652 -3 0.342821 0.0125291 0.134408 0.00983109 0.48269 0.0169453 +1 3.30421 0.0389897 0.110807 0.0175328 3.41915 0.0385334 +2 0.97166 0.065693 0.186811 0.0252397 1.16385 0.0481248 +3 0.352422 0.0204326 0.136408 0.0204325 0.502183 0.0397879 Modified: trunk/explore/perf/STL/stream/unistd.dat =================================================================== --- trunk/explore/perf/STL/stream/unistd.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/stream/unistd.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1 +1 @@ -2 1.00646 0.0756292 74.7483 2.38617 76.5218 2.03552 +2 1.01486 0.0507276 78.3945 3.3528 79.8404 2.95701 Modified: trunk/explore/perf/STL/string/STLport-malloc.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-malloc.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string/STLport-malloc.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,6 +1,9 @@ -1 4.15706 0.0245159 0.291618 0.024753 4.45047 0.0145832 -2 5.99197 0.00847623 0.0116003 0.00680037 6.00745 0.0125124 -3 5.53715 0.0619407 0.0028 0.00401995 5.54212 0.061754 -4 4.32507 0.0118398 0.004 0.004 4.33124 0.0103204 -5 2.28694 0.0929236 0.0012 0.00183303 2.29032 0.0918935 -7 7.9517 0.120829 0.0044 0.0028 7.95899 0.120235 +1 4.23106 0.0594694 0.272017 0.0312428 4.51852 0.054427 +2 6.10638 0.0200212 0.0024 0.0032 6.11315 0.0199284 +3 5.63515 0.110077 0.0012 0.00256125 5.63984 0.108436 +4 4.35427 0.0433157 0.0036 0.00377359 4.36097 0.0376369 +5 2.23534 0.0384439 0.0040001 0.00473312 2.24053 0.036599 +6 1.28288 0.0150793 0.0028 0.00256125 1.28638 0.0156533 +7 3.76824 0.230312 0.0024 0.00195959 3.78984 0.22189 +8 8.19771 0.202936 0.0032 0.0024 8.2052 0.202743 +9 4.7543 0.119047 0.0032 0.0024 4.76229 0.11736 Modified: trunk/explore/perf/STL/string/STLport-newalloc.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-newalloc.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string/STLport-newalloc.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,5 +1,5 @@ -1 4.15506 0.047603 0.288818 0.0333152 4.44522 0.0276581 -2 6.03278 0.0229413 0.0072001 0.00466495 6.04101 0.0217808 -3 5.57675 0.174252 0.0064001 0.00542611 5.58463 0.171615 -4 4.49668 0.0195521 0.0036 0.0028 4.50097 0.0188424 -5 2.38815 0.196135 0.004 0.00357771 2.39252 0.197062 +1 4.23786 0.184907 0.294418 0.0355188 4.54736 0.224806 +2 6.13998 0.0463217 0.002 0.00268328 6.14526 0.0465008 +3 5.65955 0.208749 0.0040001 0.00473312 5.67106 0.205009 +4 4.56508 0.0404716 0.0044001 0.00631214 4.5729 0.0381596 +5 2.33335 0.151112 0.0064001 0.00407945 2.34014 0.150833 Modified: trunk/explore/perf/STL/string/STLport-ropes.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-ropes.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string/STLport-ropes.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,5 +1,5 @@ -1 38.4728 0.133361 0.81165 0.997886 46.2315 21.6565 -2 16.1746 0.0511092 0.0040001 0.00473312 16.1881 0.0564046 -3 26.336 0.358706 0.002 0.00268328 26.3507 0.365177 -4 1.11407 0.00572744 0.0068001 0.00670548 1.12812 0.0176484 -5 0.602837 0.00820789 0.0024 0.00195959 0.614937 0.0274884 +1 38.7304 0.280771 0.616038 0.494266 44.2172 14.5415 +2 16.3194 0.0698888 0.0084003 0.0120605 16.3369 0.0741949 +3 26.5705 0.203846 0.0060001 0.00784885 26.5891 0.200973 +4 1.12167 0.00697482 0.0052001 0.00801028 1.13264 0.0272404 +5 0.606437 0.0118936 0.0012 0.00256125 0.618031 0.0292926 Modified: trunk/explore/perf/STL/string/STLport.dat =================================================================== --- trunk/explore/perf/STL/string/STLport.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string/STLport.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,9 +1,9 @@ -1 4.17906 0.040164 0.281617 0.0302119 4.46209 0.0267408 -2 6.05598 0.011378 0.004 0.00178885 6.06214 0.0109979 -3 5.40994 0.0137645 0.0048 0.00299333 5.41547 0.013554 -4 4.05905 0.0126562 0.002 0.002 4.06249 0.0127971 -5 2.06333 0.00733256 0.0032 0.0016 2.06686 0.0075237 -6 1.28208 0.00368798 0.0036 0.00215407 1.2859 0.00378534 -7 3.56662 0.0217048 0.0044 0.00417612 3.57178 0.0203811 -8 7.78049 0.0417638 0.0040001 0.00473312 7.78705 0.0388537 -9 4.66909 0.0441768 0.0048001 0.00587897 4.67489 0.0491 +1 4.18266 0.0454763 0.304019 0.0252997 4.50083 0.0701087 +2 6.09478 0.0608038 0.0036 0.00454313 6.10222 0.05731 +3 5.50594 0.0358775 0.0056001 0.00445444 5.55377 0.135609 +4 4.08586 0.0520404 0.0088002 0.00688219 4.10517 0.0477631 +5 2.08973 0.0196952 0.004 0.00438178 2.09943 0.0160191 +6 1.29848 0.0134112 0.0032 0.0024 1.30636 0.0171024 +7 3.61623 0.0569386 0.0044001 0.0054993 3.63742 0.0585603 +8 7.91849 0.105825 0.0032001 0.00499625 7.92673 0.102813 +9 4.7275 0.0744262 0.0028 0.00256125 4.73533 0.0735734 Modified: trunk/explore/perf/STL/string/libstd++.dat =================================================================== --- trunk/explore/perf/STL/string/libstd++.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string/libstd++.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,9 +1,9 @@ -1 3.31181 0.037842 0.307219 0.025664 3.7788 0.482719 -2 16.181 0.0611397 0.0164007 0.0166334 16.2299 0.0742153 -3 13.9601 0.260384 0.0056001 0.00624843 13.9818 0.251885 -4 1.16087 0.00560026 0.0024 0.00366606 1.16402 0.00563782 -5 0.592037 0.00473329 0.002 0.002 0.594456 0.00395796 -6 1.15887 0.00694014 0.004 0.00357771 1.16275 0.00746458 -7 1.15887 0.00694014 0.004 0.00357771 1.16275 0.00746458 -8 10.8259 0.133324 0.0028 0.0031241 10.832 0.134483 -9 10.8259 0.133324 0.0028 0.0031241 10.832 0.134483 +1 3.34701 0.0388683 0.308819 0.0296558 3.68288 0.0835909 +2 16.2918 0.0687776 0.0084002 0.0084764 16.3113 0.07222 +3 14.1201 0.30164 0.0024 0.00195959 14.1307 0.29803 +4 1.17247 0.011378 0.0024 0.0026533 1.17648 0.0133383 +5 0.610838 0.0342273 0.0032 0.00299333 0.614264 0.0335697 +6 1.16647 0.00842914 0.0024 0.0026533 1.16984 0.00710338 +7 1.16647 0.00842914 0.0024 0.0026533 1.16984 0.00710338 +8 11.0823 0.120741 0.0044 0.00332265 11.0913 0.119443 +9 11.0823 0.120741 0.0044 0.00332265 11.0913 0.119443 Modified: trunk/explore/perf/STL/string/ropes/libstdc++.dat =================================================================== --- trunk/explore/perf/STL/string/ropes/libstdc++.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string/ropes/libstdc++.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,12 +1,12 @@ -64 0.100806 0.00299333 0.0060002 0.0114897 0.121107 0.0545074 -128 0.103406 0.00405473 0.0046001 0.00860506 0.115436 0.0389932 -512 0.113873 0.0152406 0.0037334 0.00729843 0.122954 0.0336089 -1024 0.130008 0.0310246 0.00330005 0.00644311 0.137414 0.0384821 -4096 0.212733 0.16777 0.00328004 0.00591646 0.219322 0.167403 -10240 0.371423 0.386778 0.00346672 0.00572583 0.377715 0.38612 -20480 0.66307 0.799892 0.00320004 0.00543451 0.668947 0.798717 -30420 1.35698 1.98267 0.00305004 0.00518649 1.36265 1.98174 -40960 2.1456 2.91033 0.00288892 0.00499006 2.15116 2.90953 -51200 2.97883 3.72451 0.109767 0.322104 3.09131 3.94643 -81920 5.96383 10.0969 1.96067 5.86502 7.9283 15.7558 -102400 10.1386 16.8903 3.68173 8.00844 13.8255 24.7041 +64 0.104406 0.00215407 0.0024 0.0026533 0.128095 0.0643866 +128 0.106006 0.00296668 0.0022 0.00267582 0.11911 0.0464113 +512 0.11694 0.0158228 0.00173333 0.00246216 0.126438 0.0393601 +1024 0.133508 0.0318352 0.0016 0.00233238 0.141176 0.042598 +4096 0.216813 0.169151 0.0016 0.0024 0.223627 0.169391 +10240 0.377223 0.390794 0.00186667 0.00247296 0.383518 0.389802 +20480 0.667584 0.798511 0.00205714 0.00250648 0.673383 0.797022 +30420 1.35743 1.97223 0.0022 0.0026 1.36317 1.97156 +40960 2.15333 2.92019 0.00222222 0.00260673 2.15894 2.9195 +51200 2.99255 3.7435 0.106446 0.314058 3.10239 3.96017 +81920 6.06871 10.3773 1.8791 5.62437 7.95239 15.7986 +102400 10.2705 17.1199 3.55282 7.73532 13.8291 24.6758 Modified: trunk/explore/perf/STL/string/ropes/rope.dat =================================================================== --- trunk/explore/perf/STL/string/ropes/rope.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string/ropes/rope.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,12 +1,12 @@ -64 1.02886 0.00688244 0.0032 0.00299333 1.03165 0.00799225 -128 1.14087 0.00711095 0.002 0.00268328 1.14404 0.00566074 -512 1.40489 0.00499641 0.0036 0.00417612 1.40916 0.00508287 -1024 1.5385 0.00804046 0.0028 0.00401995 1.54323 0.00707439 -4096 1.79291 0.00711093 0.0024 0.00195959 1.7958 0.00716246 -10240 1.92572 0.00697472 0.0024 0.00195959 1.92947 0.00754328 -20480 2.05493 0.0082077 0.0024 0.0026533 2.05723 0.00710228 -30420 2.02253 0.00512269 0.0008 0.0016 2.02537 0.00518897 -40960 2.17214 0.00645024 0.002 0.002 2.1744 0.00605553 -51200 2.10493 0.0112861 0.0028 0.00183303 2.10906 0.00976126 -81920 2.29574 0.00454331 0.0012 0.00183303 2.29743 0.00594112 -102400 2.24134 0.00670557 0.0016 0.00195959 2.24374 0.00708599 +64 1.03886 0.0101278 0.0032 0.00348712 1.04296 0.00982079 +128 1.14847 0.0101908 0.0032001 0.00499625 1.15246 0.0128573 +512 1.42369 0.00725593 0.0028 0.00256125 1.42652 0.00678267 +1024 1.5385 0.00842905 0.0024 0.0026533 1.54182 0.0116331 +4096 1.83211 0.0167821 0.0016 0.00195959 1.83463 0.0169882 +10240 1.95092 0.0148656 0.0016 0.0026533 1.95452 0.0138659 +20480 2.07733 0.0204012 0.0044 0.00377359 2.08296 0.0191713 +30420 2.01813 0.0198606 0.0004 0.0012 2.02 0.0196624 +40960 2.19054 0.0171778 0.0036001 0.00703165 2.19553 0.0223312 +51200 2.15693 0.0075476 0.0032 0.00299333 2.15955 0.00740592 +81920 2.31094 0.0228434 0.0044001 0.00680029 2.31724 0.0286375 +102400 2.25294 0.0207705 0.0024 0.0032 2.25737 0.0235833 Modified: trunk/explore/perf/STL/string/ropes/string.dat =================================================================== --- trunk/explore/perf/STL/string/ropes/string.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string/ropes/string.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,12 +1,12 @@ -64 0.0748042 0.00312443 0.0016 0.0026533 0.0843156 0.0238957 -128 0.086005 0.002 0.0024 0.0026533 0.0881502 0.00260921 -512 0.139608 0.00280031 0.004 0.00252982 0.143301 0.0011302 -1024 0.217613 0.00195959 0.0028 0.00256125 0.220388 0.0023365 -4096 0.680842 0.00391937 0.0016 0.00195959 0.682749 0.00452557 -10240 1.6497 0.076596 0.0040001 0.00692849 1.65561 0.07492 -20480 3.43861 0.0578089 0.0044001 0.00488286 3.44421 0.0604491 -30420 4.39107 0.0238711 0.002 0.00268328 4.39528 0.0225837 -40960 8.41773 0.0830097 0.0012 0.00183303 8.42173 0.0828798 -51200 11.6355 0.116077 0.0056 0.00195959 11.6445 0.116809 -81920 22.659 0.164012 0.002 0.00268328 22.6668 0.163658 -102400 33.0101 0.0675794 0.0028 0.00256125 33.0225 0.0665109 +64 0.0752043 0.00430847 0.0044001 0.00454338 0.084166 0.0217332 +128 0.082405 0.0026533 0.0032 0.0016 0.0859404 0.00280498 +512 0.144009 0.00309864 0.0008 0.0016 0.144906 0.00209574 +1024 0.220813 0.0024004 0.0028 0.00256125 0.222543 0.0030587 +4096 0.698043 0.0232738 0.0024 0.0026533 0.700214 0.0236067 +10240 1.6645 0.088882 0.0016 0.00195959 1.66813 0.0893904 +20480 3.42261 0.0901824 0.0028 0.00256125 3.42581 0.0892539 +30420 4.39547 0.0216751 0.0012 0.00183303 4.4001 0.0236698 +40960 8.38212 0.0728265 0.0028 0.00256125 8.38691 0.0735861 +51200 11.8039 0.0963023 0.0052001 0.00594668 11.8112 0.0954408 +81920 23.0206 0.14832 0.002 0.002 23.0278 0.148283 +102400 32.68 0.3815 0.0032 0.0024 32.6918 0.382396 Modified: trunk/explore/perf/STL/string-MT/STLport-malloc.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-malloc.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string-MT/STLport-malloc.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,6 +1,9 @@ -1 8.40252 0.0420406 0.96246 0.401248 4.96751 0.70178 -2 0 0 0.0004 0.0012 0.002307 0.00567755 -3 13.1612 3.35447 0.0080002 0.00536694 6.68921 1.79517 -4 10.4419 1.91468 0.0060001 0.00651174 5.34985 1.09376 -5 4.53468 0.0194495 0.0044 0.0012 2.28911 0.0113522 -7 17.4703 1.75348 0.0100002 0.00544088 8.79241 0.905173 +1 8.50773 0.0492469 0.767648 0.0549492 4.75626 0.0777337 +2 0.0004 0.0012 0 0 0.0037221 0.00988252 +3 13.236 3.31244 0.0128005 0.0190842 6.7368 1.79666 +4 10.3546 1.94889 0.0060001 0.00764228 5.21312 0.970922 +5 5.10672 1.61 0.0024 0.00407922 2.59293 0.843994 +6 2.54056 0.0076844 0.0040001 0.00438205 1.28837 0.0227226 +7 8.58734 1.64516 0.0068 0.0031241 4.36273 0.887227 +8 20.0301 2.28121 0.0176007 0.0130485 10.1719 1.15886 +9 11.2907 2.09846 0.0064001 0.0048002 5.72593 1.05069 Modified: trunk/explore/perf/STL/string-MT/STLport-newalloc.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-newalloc.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string-MT/STLport-newalloc.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,5 +1,5 @@ -1 0 0 0.0004 0.0012 0.0024018 0.00595591 -2 0.0004 0.0012 0 0 0.00113 0.00220707 -3 0 0 0 0 0.0014289 0.00313837 -4 0.0004 0.0012 0 0 0.0022156 0.00544453 -5 0.0004 0.0012 0 0 0.0022303 0.00549463 +1 0 0 0.0004 0.0012 0.001664 0.00377142 +2 0 0 0.0004 0.0012 0.0023796 0.00596116 +3 0 0 0.0008 0.0016 0.0015478 0.00345978 +4 0 0 0.0008 0.0016 0.0004941 0.000307979 +5 0 0 0.0004 0.0012 0.0025024 0.00617766 Modified: trunk/explore/perf/STL/string-MT/STLport-ropes.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-ropes.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string-MT/STLport-ropes.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,5 +1,5 @@ -1 151.839 3.11779 39.4769 2.9413 701.946 122.957 -2 35.1442 0.0658343 0.144809 0.154741 19.073 0.166006 -3 273.087 3.17225 0.422826 0.624575 137.387 1.37411 -4 2.27094 0.0080104 0.0068001 0.00402018 1.16269 0.0365398 -5 1.18287 0.00360042 0.006 0.00409878 0.613921 0.0322286 +1 152.781 2.74145 35.6286 2.63674 783.226 228.047 +2 35.4414 0.0449312 0.32882 0.742039 19.1862 0.181946 +3 263.833 7.23938 0.173611 0.0867455 133.242 2.92608 +4 2.28694 0.00840037 0.0100002 0.00967525 1.17585 0.0446336 +5 1.19407 0.00322509 0.0036 0.00377359 0.617661 0.0261637 Modified: trunk/explore/perf/STL/string-MT/STLport.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string-MT/STLport.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,9 +1,9 @@ -1 8.45413 0.0636832 0.841252 0.0635536 4.69681 0.0123069 -2 0 0 0.0004 0.0012 0.0023791 0.00594233 -3 18.6964 0.45567 0.0128005 0.00587918 9.88164 0.249014 -4 65.3573 2.81207 0.0420022 0.0169952 32.8859 1.40916 -5 27.1641 3.23243 0.0204009 0.0120606 13.7122 1.66887 -6 2.53256 0.0028 0.0012 0.00183303 1.28451 0.0168405 -7 75.2971 1.01556 0.051603 0.0368132 37.9191 0.468911 -8 66.3165 1.56553 0.0424022 0.0239481 33.2749 0.770332 -9 22.0258 0.161011 0.0132004 0.00996858 11.1085 0.110625 +1 8.53453 0.0277291 0.832452 0.0408909 4.78074 0.0179781 +2 0 0 0.0004 0.0012 0.0068787 0.0194178 +3 18.7428 0.481269 0.0080002 0.00737596 9.90119 0.301487 +4 62.9187 3.4982 0.0440025 0.0271898 31.7055 1.67695 +5 25.04 2.09086 0.0128004 0.00854228 12.6247 1.05843 +6 2.55376 0.00265354 0.0028 0.00183303 1.29564 0.0126903 +7 69.5531 4.58372 0.0304016 0.0170845 35.1045 2.06331 +8 65.6845 1.27113 0.0472025 0.0256015 33.0477 0.553838 +9 21.7778 0.493746 0.0096003 0.00598704 11.1189 0.20591 Modified: trunk/explore/perf/STL/string-MT/libstd++.dat =================================================================== --- trunk/explore/perf/STL/string-MT/libstd++.dat 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/string-MT/libstd++.dat 2006-10-18 11:29:01 UTC (rev 1341) @@ -1,9 +1,9 @@ -1 6.77202 0.0625741 1.01846 0.19914 4.06586 0.267526 -2 0 0 0.0012 0.00183303 0.0051849 0.0141821 -3 36.4871 10.8187 0.0432023 0.0404718 18.3421 5.41833 -4 2.29214 0.00593316 0.0028 0.00183303 1.16165 0.0224047 -5 1.16847 0.00280031 0.0044 0.00332265 0.597379 0.0126797 -6 2.29494 0.00694006 0.0044001 0.00454338 1.16298 0.0209739 -7 2.29494 0.00694006 0.0044001 0.00454338 1.16298 0.0209739 -8 28.2342 6.01936 0.0208008 0.0118396 14.2942 3.04222 -9 28.2342 6.01936 0.0208008 0.0118396 14.2942 3.04222 +1 6.85483 0.0315083 0.867254 0.0339808 3.96415 0.0650459 +2 0 0 0.0004 0.0012 0.0060232 0.0168519 +3 39.4017 13.1284 0.0284013 0.0208973 19.8737 6.59532 +4 2.36095 0.0881834 0.0048 0.00391918 1.20312 0.0496791 +5 1.18047 0.00332308 0.002 0.002 0.603908 0.00876683 +6 2.33455 0.0767215 0.0048001 0.00430839 1.19006 0.0407869 +7 2.33455 0.0767215 0.0048001 0.00430839 1.19006 0.0407869 +8 29.7679 6.8736 0.0312018 0.054374 15.2395 3.60464 +9 29.7679 6.8736 0.0312018 0.054374 15.2395 3.60464 Modified: trunk/explore/perf/STL/strings.gplot =================================================================== --- trunk/explore/perf/STL/strings.gplot 2006-10-18 11:20:25 UTC (rev 1340) +++ trunk/explore/perf/STL/strings.gplot 2006-10-18 11:29:01 UTC (rev 1341) @@ -128,7 +128,7 @@ #pause(-1) set output "strings-MT-t-stlp-m.eps" -plot [0.9:5.1] 'string-MT/STLport-malloc.dat' using ($1):($6) notitle w l lt 1, \ +plot [0.9:9.1] 'string-MT/STLport-malloc.dat' using ($1):($6) notitle w l lt 1, \ 'string-MT/STLport-malloc.dat' using ($1):($6):($7) title "malloc" w yerrorbars lt 1, \ 'string-MT/STLport-malloc.dat' using ($1):($2/2) notitle w l lt 2, \ 'string-MT/STLport-malloc.dat' using ($1):($2/2):($3) title "malloc, user time per thread" w yerrorbars lt 2, \ @@ -138,7 +138,7 @@ #pause(-1) set output "strings-MT-t-stlp-r.eps" -plot [0.9:5.1] 'string/STLport-ropes.dat' using ($1):($6) notitle w l lt 1, \ +plot [0.9:9.1] 'string/STLport-ropes.dat' using ($1):($6) notitle w l lt 1, \ 'string/STLport-ropes.dat' using ($1):($6):($7) title "STLport, ropes" w yerrorbars lt 1, \ 'string/STLport-ropes.dat' using ($1):($2/2) notitle w l lt 2, \ 'string/STLport-ropes.dat' using ($1):($2/2):($3) title "STLport, ropes, user time per thread" w yerrorbars lt 2, \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-18 11:20:35
|
Revision: 1340 http://svn.sourceforge.net/complement/?rev=1340&view=rev Author: complement Date: 2006-10-18 04:20:25 -0700 (Wed, 18 Oct 2006) Log Message: ----------- rerun test; modify tests build/run structure; tests for template expression Modified Paths: -------------- trunk/explore/perf/STL/compare.pdf Modified: trunk/explore/perf/STL/compare.pdf =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-18 11:17:26
|
Revision: 1339 http://svn.sourceforge.net/complement/?rev=1339&view=rev Author: complement Date: 2006-10-18 04:17:17 -0700 (Wed, 18 Oct 2006) Log Message: ----------- Jan 15 2006 Added Paths: ----------- trunk/explore/perf/STL/compare.pdf Added: trunk/explore/perf/STL/compare.pdf =================================================================== (Binary files differ) Property changes on: trunk/explore/perf/STL/compare.pdf ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-18 10:50:01
|
Revision: 1338 http://svn.sourceforge.net/complement/?rev=1338&view=rev Author: complement Date: 2006-10-18 03:49:50 -0700 (Wed, 18 Oct 2006) Log Message: ----------- add connections per sec Modified Paths: -------------- trunk/explore/perf/stem/Makefile trunk/explore/perf/stem/stemload.gplot Modified: trunk/explore/perf/stem/Makefile =================================================================== --- trunk/explore/perf/stem/Makefile 2006-10-18 10:49:05 UTC (rev 1337) +++ trunk/explore/perf/stem/Makefile 2006-10-18 10:49:50 UTC (rev 1338) @@ -30,7 +30,7 @@ (cd stemload; rm -rf log; mkdir log; ../${timeprog} -o ../load.dat obj/gcc/so/stemload) pkill -TERM stemecho cat stemload/log/*_log.* | sort -n -k 2 | awk 'BEGIN { m = 0.0 } { if ( NR == 1 ) { m = $$2; }; print $$1, $$2 - m, $$3; }' > load.log - awk 'BEGIN {i1 = 0.0; n = 0; sq1 = 0; dt = 30.0; t0 = 0.0; } { if ( ($$2 - t0) > dt ) { print t0 + 0.5 * dt, (i1 / n), sqrt((sq1 - (i1^2)/n ) / n); t0 += dt; i1 = $$3; n = 1; sq1 = $$3^2; } else { i1 += $$3; ++n; sq1 += $$3^2; }; } END {print t0 + 0.5 * dt, (i1 / n), sqrt((sq1 - (i1^2)/n ) / n); t0 += dt; }' load.log > stat.dat + awk 'BEGIN {i1 = 0.0; n = 0; sq1 = 0; dt = 60.0; t0 = 0.0; } { if ( ($$2 - t0) > dt ) { print t0 + 0.5 * dt, (i1 / n), sqrt((sq1 - (i1^2)/n ) / n), n / dt; t0 += dt; i1 = $$3; n = 1; sq1 = $$3^2; } else { i1 += $$3; ++n; sq1 += $$3^2; }; } END {print t0 + 0.5 * dt, (i1 / n), sqrt((sq1 - (i1^2)/n ) / n), n / dt; }' load.log > stat.dat .PHONY: all depend clean clobber test Modified: trunk/explore/perf/stem/stemload.gplot =================================================================== --- trunk/explore/perf/stem/stemload.gplot 2006-10-18 10:49:05 UTC (rev 1337) +++ trunk/explore/perf/stem/stemload.gplot 2006-10-18 10:49:50 UTC (rev 1338) @@ -1,7 +1,17 @@ #!/usr/bin/env gnuplot +set xlabel "$t$, sec" +set ylabel "$\Delta t$, sec" + set logscale y -plot 'load.log' using ($2):($3) w d lt 1, \ - 'stat.dat' using ($1):($2) w l lt 2, \ - 'stat.dat' using ($1):($2):($3) w yerrorbars lt 2 +plot 'load.log' using ($2):($3) w d lt 2, \ + 'stat.dat' using ($1):($2) w l lt 4, \ + 'stat.dat' using ($1):($2):($3) w yerrorbars lt 4 pause (-1) + +unset logscale +set ylabel "messeges, sec$^{-1}$" +plot 'stat.dat' using ($1):($4) w l + +pause (-1) + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-18 10:49:22
|
Revision: 1337 http://svn.sourceforge.net/complement/?rev=1337&view=rev Author: complement Date: 2006-10-18 03:49:05 -0700 (Wed, 18 Oct 2006) Log Message: ----------- increase number of threads from 400 to 2000; require big limits Modified Paths: -------------- trunk/explore/perf/stem/stemload/stemload.cc Modified: trunk/explore/perf/stem/stemload/stemload.cc =================================================================== --- trunk/explore/perf/stem/stemload/stemload.cc 2006-10-17 16:16:54 UTC (rev 1336) +++ trunk/explore/perf/stem/stemload/stemload.cc 2006-10-18 10:49:05 UTC (rev 1337) @@ -145,7 +145,7 @@ tm.tv_sec = 0; tm.tv_nsec = 100000000; - for ( int i = 0; i < 400; ++i ) { + for ( int i = 0; i < 2000; ++i ) { new Thread( client_thread, (void *)i, 0, Thread::detached, PTHREAD_STACK_MIN * 2 ); Thread::delay( &tm ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-17 16:17:09
|
Revision: 1336 http://svn.sourceforge.net/complement/?rev=1336&view=rev Author: complement Date: 2006-10-17 09:16:54 -0700 (Tue, 17 Oct 2006) Log Message: ----------- test infrastructure Modified Paths: -------------- trunk/explore/perf/stem/stemload/stemload.cc Added Paths: ----------- trunk/explore/perf/stem/Makefile trunk/explore/perf/stem/stemload.gplot Removed Paths: ------------- trunk/explore/perf/stem/stemload/stemload.gplot Property Changed: ---------------- trunk/explore/perf/stem/stemload/ Added: trunk/explore/perf/stem/Makefile =================================================================== --- trunk/explore/perf/stem/Makefile (rev 0) +++ trunk/explore/perf/stem/Makefile 2006-10-17 16:16:54 UTC (rev 1336) @@ -0,0 +1,36 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 00:00:15 ptr> + +DIRS := stemecho stemload +timeprog := ../../app/utils/time/obj/gcc/so/time + +all: + for d in $(DIRS); do \ + (cd $$d; ${MAKE} release-shared); \ + done + +depend: + for d in $(DIRS); do \ + (cd $$d; ${MAKE} depend); \ + done + +clean: + for d in $(DIRS); do \ + (cd $$d; ${MAKE} clean); \ + done + rm -rf stemload/log + +clobber: + for d in $(DIRS); do \ + (cd $$d; ${MAKE} clobber); \ + done + rm -rf stemload/log + +test: + (cd stemecho; ../${timeprog} -o ../echo.dat obj/gcc/so/stemecho 2>/dev/null &) + (cd stemload; rm -rf log; mkdir log; ../${timeprog} -o ../load.dat obj/gcc/so/stemload) + pkill -TERM stemecho + cat stemload/log/*_log.* | sort -n -k 2 | awk 'BEGIN { m = 0.0 } { if ( NR == 1 ) { m = $$2; }; print $$1, $$2 - m, $$3; }' > load.log + awk 'BEGIN {i1 = 0.0; n = 0; sq1 = 0; dt = 30.0; t0 = 0.0; } { if ( ($$2 - t0) > dt ) { print t0 + 0.5 * dt, (i1 / n), sqrt((sq1 - (i1^2)/n ) / n); t0 += dt; i1 = $$3; n = 1; sq1 = $$3^2; } else { i1 += $$3; ++n; sq1 += $$3^2; }; } END {print t0 + 0.5 * dt, (i1 / n), sqrt((sq1 - (i1^2)/n ) / n); t0 += dt; }' load.log > stat.dat + +.PHONY: all depend clean clobber test + Property changes on: trunk/explore/perf/stem/stemload ___________________________________________________________________ Name: svn:ignore - obj core + obj core log Modified: trunk/explore/perf/stem/stemload/stemload.cc =================================================================== --- trunk/explore/perf/stem/stemload/stemload.cc 2006-10-17 09:22:10 UTC (rev 1335) +++ trunk/explore/perf/stem/stemload/stemload.cc 2006-10-17 16:16:54 UTC (rev 1336) @@ -24,23 +24,33 @@ void echo( const stem::Event& ); void loop(); + static Mutex thcount_lock; + static int thcount; + static Condition last; + private: NetTransportMgr echosrv; addr_type echo_addr; ofstream timing; int n; + int lcount; DECLARE_RESPONSE_TABLE( Simulator, stem::EventHandler ); }; +Mutex Simulator::thcount_lock; +int Simulator::thcount = 0; +Condition Simulator::last; + Simulator::Simulator( int i ) : - n( i ) + n( i ), + lcount( 300 ) { echo_addr = echosrv.open( "localhost", 6995 ); stringstream s; - s << "stemload_log." << i; + s << "log/stemload_log." << i; timing.open( s.str().c_str() ); } @@ -55,7 +65,7 @@ unsigned sand = 0; - while ( true ) { + while ( lcount-- > 0 ) { Event ev( 0x5000 ); ev.dest( echo_addr ); @@ -108,27 +118,40 @@ Thread::ret_code client_thread( void *p ) { + Simulator::thcount_lock.lock(); + ++Simulator::thcount; + Simulator::thcount_lock.unlock(); + + Thread::ret_code rc; + rc.iword = 0; + Simulator simulator( (int)p ); simulator.loop(); + + Simulator::thcount_lock.lock(); + if ( --Simulator::thcount == 0 ) { + Simulator::last.set( true ); + } + Simulator::thcount_lock.unlock(); + + return rc; } int main() { - Condition cnd; - - cnd.set( false ); + Simulator::last.set( false ); timespec tm; tm.tv_sec = 0; tm.tv_nsec = 100000000; - for ( int i = 0; i < 1000; ++i ) { - new Thread( client_thread, (void *)i, 0, 0, PTHREAD_STACK_MIN * 2 ); + for ( int i = 0; i < 400; ++i ) { + new Thread( client_thread, (void *)i, 0, Thread::detached, PTHREAD_STACK_MIN * 2 ); Thread::delay( &tm ); } - cnd.wait(); + Simulator::last.try_wait(); return 0; } Deleted: trunk/explore/perf/stem/stemload/stemload.gplot =================================================================== --- trunk/explore/perf/stem/stemload/stemload.gplot 2006-10-17 09:22:10 UTC (rev 1335) +++ trunk/explore/perf/stem/stemload/stemload.gplot 2006-10-17 16:16:54 UTC (rev 1336) @@ -1,4 +0,0 @@ -#!/usr/bin/env gnuplot - -plot 'stemload.log' using ($2 - 1158855155.402390):($3) w d -pause (-1) Copied: trunk/explore/perf/stem/stemload.gplot (from rev 1319, trunk/explore/perf/stem/stemload/stemload.gplot) =================================================================== --- trunk/explore/perf/stem/stemload.gplot (rev 0) +++ trunk/explore/perf/stem/stemload.gplot 2006-10-17 16:16:54 UTC (rev 1336) @@ -0,0 +1,7 @@ +#!/usr/bin/env gnuplot + +set logscale y +plot 'load.log' using ($2):($3) w d lt 1, \ + 'stat.dat' using ($1):($2) w l lt 2, \ + 'stat.dat' using ($1):($2):($3) w yerrorbars lt 2 +pause (-1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-17 09:22:26
|
Revision: 1335 http://svn.sourceforge.net/complement/?rev=1335&view=rev Author: complement Date: 2006-10-17 02:22:10 -0700 (Tue, 17 Oct 2006) Log Message: ----------- Linux 2.6.15-gentoo-r5-1 #2 SMP Fri Mar 10 17:11:28 UTC 2006 x86_64 AMD Opteron(tm) Processor 252 AuthenticAMD GNU/Linux processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 37 model name : AMD Opteron(tm) Processor 252 cpu MHz : 2589.259 cache size : 1024 KB bogomips : 5188.73 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual processor : 1 vendor_id : AuthenticAMD cpu family : 15 model : 37 model name : AMD Opteron(tm) Processor 252 cpu MHz : 2589.259 cache size : 1024 KB bogomips : 5178.80 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual c++ (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8) Modified Paths: -------------- trunk/explore/perf/STL/compare.tex trunk/explore/perf/STL/strings.gplot Added Paths: ----------- trunk/explore/perf/STL/stream/STLport-AMD64.dat trunk/explore/perf/STL/stream/STLport-malloc-AMD64.dat trunk/explore/perf/STL/stream/libstdc++-AMD64.dat trunk/explore/perf/STL/stream/stdio-AMD64.dat trunk/explore/perf/STL/stream/unistd-AMD64.dat trunk/explore/perf/STL/string/STLport-AMD64.dat trunk/explore/perf/STL/string/STLport-malloc-AMD64.dat trunk/explore/perf/STL/string/STLport-newalloc-AMD64.dat trunk/explore/perf/STL/string/STLport-ropes-AMD64.dat trunk/explore/perf/STL/string/libstdc++-AMD64.dat trunk/explore/perf/STL/string/ropes/libstdc++-AMD64.dat trunk/explore/perf/STL/string/ropes/rope-AMD64.dat trunk/explore/perf/STL/string/ropes/string-AMD64.dat trunk/explore/perf/STL/string-MT/STLport-AMD64.dat trunk/explore/perf/STL/string-MT/STLport-malloc-AMD64.dat trunk/explore/perf/STL/string-MT/STLport-newalloc-AMD64.dat trunk/explore/perf/STL/string-MT/STLport-ropes-AMD64.dat trunk/explore/perf/STL/string-MT/libstdc++-AMD64.dat Modified: trunk/explore/perf/STL/compare.tex =================================================================== --- trunk/explore/perf/STL/compare.tex 2006-10-17 06:48:45 UTC (rev 1334) +++ trunk/explore/perf/STL/compare.tex 2006-10-17 09:22:10 UTC (rev 1335) @@ -23,7 +23,7 @@ \newcommand{\CPP}{\mbox{{C}{+}{+}}} \title{Comparison of Strings Implementations \\ in \CPP{} language} -\author{Petr Ovtchenkov} +\author{Petr Ovtchenkov\footnote{\copiright{} Petr Ovtchenkov, 2003--2006. Licensed under the Academic Free License version 3{.}0.}} \begin{document} @@ -147,14 +147,14 @@ \label{STLport-gpp-strings}} \end{figure} -%\begin{figure} -% \begin{center} -% \input intel-amd.tex -% \end{center} -% \caption{Comparison of two x86 platforms. See platforms description -% on page~\pageref{AMD}. This graphics show that higher frequency isn't -% synonym of better perfomance\label{intel-amd}} -%\end{figure} +\begin{figure} + \begin{center} + \input amd-amd64.tex + \end{center} + \caption{Progress of systems over 3 years: two processors systems. See platforms description + on page~\pageref{AMD}. This graphics show that higher frequency isn't + synonym of better perfomance\label{amd-amd64}} +\end{figure} \subsection{String copy\label{params-string} (test \#4)} Added: trunk/explore/perf/STL/stream/STLport-AMD64.dat =================================================================== --- trunk/explore/perf/STL/stream/STLport-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/stream/STLport-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,3 @@ +1 1.10927 0.0204014 0.0832049 0.015264 1.19445 0.0126246 +2 0.399625 0.0192221 0.228014 0.022487 0.627461 0.00474202 +3 0.659241 0.0186601 0.0920055 0.0161007 0.752065 0.010266 Added: trunk/explore/perf/STL/stream/STLport-malloc-AMD64.dat =================================================================== --- trunk/explore/perf/STL/stream/STLport-malloc-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/stream/STLport-malloc-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,3 @@ +1 1.25848 0.0125484 0.0860051 0.00824667 1.34503 0.0118199 +2 0.410025 0.0222904 0.216013 0.0224157 0.632278 0.0189878 +3 0.64604 0.0148872 0.0684039 0.0134411 0.713965 0.0103832 Added: trunk/explore/perf/STL/stream/libstdc++-AMD64.dat =================================================================== --- trunk/explore/perf/STL/stream/libstdc++-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/stream/libstdc++-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,3 @@ +1 1.72491 0.0189158 0.0716042 0.0152272 1.79545 0.0143403 +2 0.756447 0.0223047 0.16521 0.0240048 0.976483 0.160362 +3 0.48243 0.0525603 0.0880051 0.0117311 0.571927 0.0568406 Added: trunk/explore/perf/STL/stream/stdio-AMD64.dat =================================================================== --- trunk/explore/perf/STL/stream/stdio-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/stream/stdio-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,3 @@ +1 1.90212 0.00880968 0.0444023 0.00520036 1.94724 0.00757642 +2 0.286418 0.0121598 0.0888053 0.0132433 0.375206 0.00403593 +3 0.0632036 0.00835288 0.0864049 0.00842917 0.151482 0.00761303 Added: trunk/explore/perf/STL/stream/unistd-AMD64.dat =================================================================== --- trunk/explore/perf/STL/stream/unistd-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/stream/unistd-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1 @@ +2 0.391224 0.0298172 36.9271 1.4943 37.4307 1.44786 Added: trunk/explore/perf/STL/string/STLport-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string/STLport-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,9 @@ +1 2.31294 0.0204601 0.196412 0.0211258 2.51073 0.0128756 +2 2.78857 0.0955623 0.0016 0.00195959 2.79022 0.0957759 +3 2.43055 0.00407965 0.0008 0.0016 2.43029 0.00310979 +4 1.50169 0.0601423 0 0 1.50337 0.0599721 +5 0.738846 0.0108892 0.0008 0.0024 0.739827 0.0121956 +6 0.525232 0.00646278 0.0004 0.0012 0.526137 0.00594654 +7 1.08167 0.0107635 0.0016 0.00195959 1.08324 0.0120901 +8 2.92458 0.0362437 0.0016 0.00195959 2.92567 0.0357249 +9 1.69651 0.00417654 0.0008 0.0016 1.69739 0.00398463 Added: trunk/explore/perf/STL/string/STLport-malloc-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-malloc-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string/STLport-malloc-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,9 @@ +1 2.28814 0.0288462 0.203212 0.0321914 2.49053 0.0123963 +2 2.81018 0.0673007 0 0 2.81024 0.068056 +3 2.44495 0.0333151 0 0 2.44611 0.0327827 +4 1.96972 0.13614 0.0016 0.00195959 1.97136 0.135493 +5 0.891255 0.0546089 0.0012 0.00183303 0.892195 0.0540898 +6 0.500831 0.0024 0.0008 0.0016 0.501348 0.00166353 +7 1.34048 0.0076844 0.0008 0.0016 1.34121 0.00785426 +8 3.2226 0.0449456 0.0016 0.00195959 3.22332 0.0446938 +9 1.77251 0.00954206 0 0 1.77209 0.00899862 Added: trunk/explore/perf/STL/string/STLport-newalloc-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-newalloc-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string/STLport-newalloc-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,5 @@ +1 2.30934 0.0313987 0.178011 0.0328043 2.48798 0.0094898 +2 2.77257 0.106582 0.0032001 0.00466504 2.77519 0.108014 +3 2.43655 0.0283679 0.0008 0.0016 2.43678 0.0279961 +4 1.77571 0.00954214 0.002 0.00268328 1.77696 0.0100111 +5 0.891656 0.0103466 0.0004 0.0012 0.892924 0.0108695 Added: trunk/explore/perf/STL/string/STLport-ropes-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-ropes-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string/STLport-ropes-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,5 @@ +1 15.299 0.0716312 0.471629 0.0373313 15.7733 0.0665807 +2 7.56327 0.0437127 0.0016 0.0026533 7.56347 0.0430285 +3 8.87895 0.0753535 0.0012 0.00183303 8.8794 0.0763964 +4 0.474829 0.00402021 0.0012 0.00183303 0.476767 0.00414009 +5 0.245215 0.00256125 0.0012 0.00183303 0.246548 0.0019135 Added: trunk/explore/perf/STL/string/libstdc++-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string/libstdc++-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string/libstdc++-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,9 @@ +1 2.07853 0.0216311 0.187211 0.0241873 2.26551 0.00717554 +2 9.71821 0.0612496 0.0008 0.0016 9.71824 0.0601948 +3 4.90471 0.115294 0.0008 0.0024 4.90519 0.115593 +4 0.447628 0.0012003 0.0004 0.0012 0.446745 0.000382881 +5 0.234014 0.002 0.0004 0.0012 0.233843 0.000387269 +6 0.445227 0.00183349 0.0008 0.0016 0.446915 0.000469258 +7 0.445227 0.00183349 0.0008 0.0016 0.446915 0.000469258 +8 4.27987 0.167824 0.0012 0.00183303 4.28033 0.167533 +9 4.27987 0.167824 0.0012 0.00183303 4.28033 0.167533 Added: trunk/explore/perf/STL/string/ropes/libstdc++-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string/ropes/libstdc++-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string/ropes/libstdc++-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,12 @@ +64 0.073604 0.0026533 0.0008 0.0016 0.0749532 0.00173716 +128 0.0624035 0.0114826 0.001 0.00173205 0.0635999 0.0114519 +512 0.0632037 0.00948866 0.000933333 0.00169181 0.0644699 0.00944646 +1024 0.068704 0.0126146 0.001 0.00173205 0.0699559 0.0125471 +4096 0.0958456 0.0554518 0.00104 0.00175454 0.096993 0.0552285 +10240 0.153543 0.138592 0.001 0.00173205 0.154603 0.138334 +20480 0.254358 0.278308 0.0012 0.00195375 0.255517 0.278411 +30420 0.381623 0.425617 0.0012 0.00193907 0.382754 0.425618 +40960 0.564213 0.654015 0.00115556 0.00190853 0.565319 0.653962 +51200 0.794769 0.929183 0.00112 0.00188298 0.79578 0.928935 +81920 1.18895 1.52927 0.00109091 0.00186131 1.18998 1.52919 +102400 1.63093 2.07188 0.0011 0.00185921 1.63189 2.07165 Added: trunk/explore/perf/STL/string/ropes/rope-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string/ropes/rope-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string/ropes/rope-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,12 @@ +64 0.368423 0.00377394 0.0004 0.0012 0.369715 0.00387892 +128 0.420826 0.0123685 0.0008 0.0016 0.42154 0.0111209 +512 0.522432 0.00512291 0.0016 0.00195959 0.523456 0.00454737 +1024 0.576035 0.0111722 0 0 0.576565 0.0105291 +4096 0.676842 0.00688221 0.0004 0.0012 0.677238 0.00673868 +10240 0.732846 0.00796035 0 0 0.734203 0.00808316 +20480 0.780448 0.00808992 0.0016 0.00195959 0.781128 0.00787987 +30420 0.770448 0.016021 0.0008 0.0016 0.772041 0.0149979 +40960 0.828051 0.0121332 0.0016 0.00195959 0.830341 0.0134031 +51200 0.80165 0.00950003 0.0004 0.0012 0.803567 0.00946249 +81920 0.884455 0.0200373 0.002 0.00268328 0.886456 0.0200602 +102400 0.854453 0.0132914 0.0008 0.0016 0.854781 0.0126712 Added: trunk/explore/perf/STL/string/ropes/string-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string/ropes/string-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string/ropes/string-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,12 @@ +64 0.0476029 0.0012003 0.0004 0.0012 0.0477626 0.000452481 +128 0.0488029 0.0024002 0.0008 0.0024 0.0499801 0.000732187 +512 0.072404 0.0012 0.0008 0.0016 0.0731411 0.00083725 +1024 0.096406 0.0012 0 0 0.0971058 0.000419226 +4096 0.253615 0.00196008 0.0008 0.0016 0.25511 0.0010578 +10240 0.567235 0.00348737 0.0012 0.00183303 0.568549 0.00338904 +20480 1.09687 0.00530695 0.0012 0.00183303 1.09829 0.00541736 +30420 1.5517 0.00377398 0.0004 0.0012 1.55164 0.00349724 +40960 2.38135 0.00507586 0.002 0.00268328 2.38281 0.00595296 +51200 3.10499 0.00992833 0.0004 0.0012 3.10439 0.00972045 +81920 5.57995 0.0137935 0.0024 0.00195959 5.58276 0.012918 +102400 7.18645 0.0240181 0.0016 0.00195959 7.18866 0.0234767 Added: trunk/explore/perf/STL/string-MT/STLport-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string-MT/STLport-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,9 @@ +1 4.63829 0.0442294 0.406425 0.0424933 2.5636 0.00713248 +2 0 0 0 0 0.0002241 2.11681e-05 +3 8.86215 0.509055 0.0004 0.0012 4.47307 0.270428 +4 32.778 0.234791 0.0028 0.0044 16.7137 0.116449 +5 16.4354 2.04936 0.0012 0.00183303 8.3884 0.989977 +6 1.04407 0.00252982 0.0004 0.0012 0.529738 0.00399987 +7 8.68014 1.71303 0.0016 0.00195959 4.87127 0.833009 +8 37.3963 0.632144 0.0044 0.00377359 18.9347 0.290409 +9 12.1408 1.92452 0.0020001 0.00481693 6.26838 0.843032 Added: trunk/explore/perf/STL/string-MT/STLport-malloc-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-malloc-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string-MT/STLport-malloc-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,9 @@ +1 4.60229 0.0374509 0.411226 0.0394709 2.54273 0.00386103 +2 0 0 0.0004 0.0012 0.0002258 1.98937e-05 +3 5.31993 1.04387 0.0008 0.0016 2.69011 0.526065 +4 7.40126 0.978378 0.0012 0.00183303 3.80687 0.422288 +5 4.13826 0.315864 0.0024 0.0026533 2.22018 0.24232 +6 1.24728 0.111273 0.0004 0.0012 0.734979 0.0864042 +7 7.07924 0.878188 0.0008 0.0024 3.67317 0.366746 +8 9.51419 0.607483 0.0004 0.0012 4.80628 0.312339 +9 5.36874 0.557568 0.002 0.002 2.76853 0.266933 Added: trunk/explore/perf/STL/string-MT/STLport-newalloc-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-newalloc-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string-MT/STLport-newalloc-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,5 @@ +1 0 0 0 0 0.0001856 2.43688e-05 +2 0 0 0.0004 0.0012 0.0002169 2.75225e-05 +3 0 0 0 0 0.0002022 2.449e-05 +4 0 0 0 0 0.0001992 2.60914e-05 +5 0 0 0 0 0.0002068 3.47125e-05 Added: trunk/explore/perf/STL/string-MT/STLport-ropes-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-ropes-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string-MT/STLport-ropes-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,5 @@ +1 96.5888 4.5396 0.907656 0.0603879 49.4294 1.30461 +2 15.5894 0.0867502 0.002 0.002 8.07883 0.0686129 +3 165.457 5.88964 0.0092003 0.00567134 83.485 2.86395 +4 0.97046 0.0112006 0.0012 0.00183303 0.49161 0.00423467 +5 0.49163 0.00866318 0.0004 0.0012 0.25384 0.00863817 Added: trunk/explore/perf/STL/string-MT/libstdc++-AMD64.dat =================================================================== --- trunk/explore/perf/STL/string-MT/libstdc++-AMD64.dat (rev 0) +++ trunk/explore/perf/STL/string-MT/libstdc++-AMD64.dat 2006-10-17 09:22:10 UTC (rev 1335) @@ -0,0 +1,9 @@ +1 4.14866 0.0440917 0.419226 0.0485598 2.33061 0.0103619 +2 0 0 0 0 0.0002045 2.90732e-05 +3 15.2454 1.88175 0.0024 0.0026533 7.71691 0.928346 +4 0.902056 0.0202596 0.0004 0.0012 0.461587 0.0202586 +5 0.467629 0.0108006 0.0008 0.0016 0.241194 0.0106603 +6 3.08139 1.08229 0.0008 0.0016 1.67952 0.602561 +7 3.08139 1.08229 0.0008 0.0016 1.67952 0.602561 +8 13.6217 0.658271 0.0004 0.0012 6.95122 0.300997 +9 13.6217 0.658271 0.0004 0.0012 6.95122 0.300997 Modified: trunk/explore/perf/STL/strings.gplot =================================================================== --- trunk/explore/perf/STL/strings.gplot 2006-10-17 06:48:45 UTC (rev 1334) +++ trunk/explore/perf/STL/strings.gplot 2006-10-17 09:22:10 UTC (rev 1335) @@ -22,16 +22,16 @@ set output "strings.eps" -plot [0.9:9.1][0:25] 'string/STLport.dat' using ($1):($6) notitle w l lt 1, \ +plot [0.9:9.1] 'string/STLport.dat' using ($1):($6) notitle w l lt 1, \ 'string/STLport.dat' using ($1):($6):($7) title "STLport" w yerrorbars lt 1, \ 'string/libstd++.dat' using ($1):($6) notitle w l lt 2, \ - 'string/libstd++.dat' using ($1):($6):($7) title "libstd++" w yerrorbars lt 2, \ + 'string/libstd++.dat' using ($1):($6):($7) title "libstdc++" w yerrorbars lt 2, \ 'string/STLport-ropes.dat' using ($1):($6) notitle w l lt 3, \ 'string/STLport-ropes.dat' using ($1):($6):($7) title "STLport, ropes" w yerrorbars lt 3 #pause(-1) -#set output "intel-amd.eps" +set output "amd-amd64.eps" #plot [0.9:7.1] 'string/STLport.dat' using ($1):($6) notitle w l lt 1, \ # 'string/STLport.dat' using ($1):($6):($7) title "STLport, computer \\#1" w yerrorbars lt 1, \ @@ -42,6 +42,20 @@ # 'string/libstd++-1.dat' using ($1):($6) notitle w l lt 4, \ # 'string/libstd++-1.dat' using ($1):($6):($7) title "libstd++, computer \\#2" w yerrorbars lt 4 +plot [0.9:9.1] 'string/STLport.dat' using ($1):($6) notitle w l lt 1, \ + 'string/STLport.dat' using ($1):($6):($7) title "STLport, computer \\#1" w yerrorbars lt 1, \ + 'string/libstd++.dat' using ($1):($6) notitle w l lt 2, \ + 'string/libstd++.dat' using ($1):($6):($7) title "libstdc++, computer \\#1" w yerrorbars lt 2, \ + 'string/STLport-ropes.dat' using ($1):($6) notitle w l lt 3, \ + 'string/STLport-ropes.dat' using ($1):($6):($7) title "ropes, computer \\#1" w yerrorbars lt 3, \ + 'string/STLport-AMD64.dat' using ($1):($6) notitle w l lt 4, \ + 'string/STLport-AMD64.dat' using ($1):($6):($7) title "STLport, computer \\#2" w yerrorbars lt 4, \ + 'string/libstdc++-AMD64.dat' using ($1):($6) notitle w l lt 5, \ + 'string/libstdc++-AMD64.dat' using ($1):($6):($7) title "libstdc++, computer \\#2" w yerrorbars lt 5, \ + 'string/STLport-ropes-AMD64.dat' using ($1):($6) notitle w l lt 6, \ + 'string/STLport-ropes-AMD64.dat' using ($1):($6):($7) title "ropes, computer \\#2" w yerrorbars lt 6 + + #pause(-1) set output "alloc.eps" @@ -71,7 +85,7 @@ plot [0.9:9.1] 'string-MT/STLport.dat' using ($1):($6) notitle w l lt 1, \ 'string-MT/STLport.dat' using ($1):($6):($7) title "node alloc" w yerrorbars lt 1, \ 'string-MT/libstd++.dat' using ($1):($6) notitle w l lt 2, \ - 'string-MT/libstd++.dat' using ($1):($6):($7) title "libstd++" w yerrorbars lt 2, \ + 'string-MT/libstd++.dat' using ($1):($6):($7) title "libstdc++" w yerrorbars lt 2, \ 'string-MT/STLport-malloc.dat' using ($1):($6) notitle w l lt 3, \ 'string-MT/STLport-malloc.dat' using ($1):($6):($7) title "malloc" w yerrorbars lt 3, \ 'string-MT/STLport-ropes.dat' using ($1):($6) notitle w l lt 4, \ @@ -84,7 +98,7 @@ plot [0.9:9.1][0:25] 'string-MT/STLport.dat' using ($1):($6) notitle w l lt 1, \ 'string-MT/STLport.dat' using ($1):($6):($7) title "node alloc" w yerrorbars lt 1, \ 'string-MT/libstd++.dat' using ($1):($6) notitle w l lt 2, \ - 'string-MT/libstd++.dat' using ($1):($6):($7) title "libstd++" w yerrorbars lt 2, \ + 'string-MT/libstd++.dat' using ($1):($6):($7) title "libstdc++" w yerrorbars lt 2, \ 'string-MT/STLport-malloc.dat' using ($1):($6) notitle w l lt 3, \ 'string-MT/STLport-malloc.dat' using ($1):($6):($7) title "malloc" w yerrorbars lt 3, \ 'string-MT/STLport-ropes.dat' using ($1):($6) notitle w l lt 4, \ @@ -105,11 +119,11 @@ set output "strings-MT-t-libstd.eps" plot [0.9:9.1] 'string-MT/libstd++.dat' using ($1):($6) notitle w l lt 1, \ - 'string-MT/libstd++.dat' using ($1):($6):($7) title "libstd++" w yerrorbars lt 1, \ + 'string-MT/libstd++.dat' using ($1):($6):($7) title "libstdc++" w yerrorbars lt 1, \ 'string-MT/libstd++.dat' using ($1):($2/2) notitle w l lt 2, \ - 'string-MT/libstd++.dat' using ($1):($2/2):($3) title "libstd++, user time per thread" w yerrorbars lt 2, \ + 'string-MT/libstd++.dat' using ($1):($2/2):($3) title "libstdc++, user time per thread" w yerrorbars lt 2, \ 'string-MT/libstd++.dat' using ($1):($4/2) notitle w l lt 3, \ - 'string-MT/libstd++.dat' using ($1):($4/2):($5) title "libstd++, system time per thread" w yerrorbars lt 3 + 'string-MT/libstd++.dat' using ($1):($4/2):($5) title "libstdc++, system time per thread" w yerrorbars lt 3 #pause(-1) set output "strings-MT-t-stlp-m.eps" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-17 06:49:07
|
Revision: 1334 http://svn.sourceforge.net/complement/?rev=1334&view=rev Author: complement Date: 2006-10-16 23:48:45 -0700 (Mon, 16 Oct 2006) Log Message: ----------- Linux fighter 2.6.16.26 #3 SMP Tue Sep 5 23:23:37 MSD 2006 i686 athlon-4 i386 GNU/Linux processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(tm) MP 1500+ stepping : 2 cpu MHz : 1333.544 cache size : 256 KB bogomips : 2670.45 processor : 1 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(tm) Processor stepping : 2 cpu MHz : 1333.544 cache size : 256 KB bogomips : 2667.14 c++ (GCC) 4.1.1 Modified Paths: -------------- trunk/explore/perf/STL/compare.tex trunk/explore/perf/STL/string/STLport-malloc.dat trunk/explore/perf/STL/string/STLport-newalloc.dat trunk/explore/perf/STL/string/STLport-ropes.dat trunk/explore/perf/STL/string/STLport.dat trunk/explore/perf/STL/string/libstd++.dat trunk/explore/perf/STL/string/ropes/libstdc++.dat trunk/explore/perf/STL/string/ropes/rope.dat trunk/explore/perf/STL/string/ropes/string.dat trunk/explore/perf/STL/string-MT/STLport-malloc.dat trunk/explore/perf/STL/string-MT/STLport-newalloc.dat trunk/explore/perf/STL/string-MT/STLport-ropes.dat trunk/explore/perf/STL/string-MT/STLport.dat trunk/explore/perf/STL/string-MT/libstd++.dat Modified: trunk/explore/perf/STL/compare.tex =================================================================== --- trunk/explore/perf/STL/compare.tex 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/compare.tex 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,4 +1,4 @@ -% -*- LaTeX -*- Time-stamp: <06/10/17 00:43:24 ptr> +% -*- LaTeX -*- Time-stamp: <06/10/17 01:47:22 ptr> \documentclass[a4paper]{article} @@ -520,17 +520,23 @@ \begin{itemize} \item for processing long strings (greater than 50K) the best choice is ropes; - \item if you use strings with sizes 1K--50K then strings implementation in + \item if you use strings with sizes $0.5$K--$50$K then strings implementation in \libstd{} is a best choice; this will be good too if you only pass strings as parameters, without modifictions; - \item if you work (modify) strings with sizes less then 1K, - the strings from \STLport{} are for you. + \item if you work (modify) strings with sizes less then $0.5$K, + the strings from \STLport{} are for you; + \item the time of advantage of \texttt{node\_alloc} in \STLport{} is in the past; + progress in allocation algorithms in core system eliminate positive + effect of \texttt{node\_alloc} in single-threaded applications and + significant advantage of core system allocators in multi-threaded + applications. \end{itemize} As for streams, we see that format output to file show near the same time for \STLport{}, \libstd{} and (even!) C \verb|fprintf|. For raw write the \STLport's implementation is a bit better than \libstd{} (and both are -significant better than C \verb|fwrite|). With raw write to string stream +significant better than C \verb|fwrite| and all has huge advantage over +unbuffered output). With raw write to string stream (or in char buffer in case of C) the pure C variant is 3--4 times faster. % As about Intel$^{\mbox{\tiny\textregistered}}$ vs. AMD$^{\mbox{\tiny\textregistered}}$, no comments---see figure~\ref{intel-amd} on page~\pageref{intel-amd}. Modified: trunk/explore/perf/STL/string/STLport-malloc.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-malloc.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string/STLport-malloc.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,5 +1,6 @@ -1 2.28974 0.0246722 0.203212 0.0278183 2.53028 0.0758674 -2 2.74457 0.0954451 0.0028 0.0031241 2.82128 0.164954 -3 2.42935 0.049255 0 0 2.4443 0.0444326 -4 1.93572 0.177914 0.0012 0.00183303 1.93993 0.176626 -5 0.918057 0.0764927 0.0016 0.00195959 0.94969 0.100726 +1 4.15706 0.0245159 0.291618 0.024753 4.45047 0.0145832 +2 5.99197 0.00847623 0.0116003 0.00680037 6.00745 0.0125124 +3 5.53715 0.0619407 0.0028 0.00401995 5.54212 0.061754 +4 4.32507 0.0118398 0.004 0.004 4.33124 0.0103204 +5 2.28694 0.0929236 0.0012 0.00183303 2.29032 0.0918935 +7 7.9517 0.120829 0.0044 0.0028 7.95899 0.120235 Modified: trunk/explore/perf/STL/string/STLport-newalloc.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-newalloc.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string/STLport-newalloc.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,5 +1,5 @@ -1 2.30774 0.0125801 0.202412 0.0251221 2.52446 0.0544962 -2 2.69617 0.054262 0.0016 0.00195959 2.74277 0.0544672 -3 2.43135 0.0414097 0.0044002 0.011927 2.50599 0.0864516 -4 1.79371 0.0286905 0.0004 0.0012 1.82842 0.0411055 -5 0.904056 0.0203974 0.0004 0.0012 0.910167 0.0178369 +1 4.15506 0.047603 0.288818 0.0333152 4.44522 0.0276581 +2 6.03278 0.0229413 0.0072001 0.00466495 6.04101 0.0217808 +3 5.57675 0.174252 0.0064001 0.00542611 5.58463 0.171615 +4 4.49668 0.0195521 0.0036 0.0028 4.50097 0.0188424 +5 2.38815 0.196135 0.004 0.00357771 2.39252 0.197062 Modified: trunk/explore/perf/STL/string/STLport-ropes.dat =================================================================== --- trunk/explore/perf/STL/string/STLport-ropes.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string/STLport-ropes.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,5 +1,5 @@ -1 15.3446 0.068717 0.449228 0.0396025 15.9043 0.146987 -2 7.53767 0.0579154 0.0032 0.00466476 7.63046 0.119687 -3 8.86575 0.0324513 0.0016 0.00195959 8.87191 0.029542 -4 0.48363 0.0181075 0.0004 0.0012 0.483822 0.0179977 -5 0.251215 0.0190001 0.0004 0.0012 0.252004 0.0180948 +1 38.4728 0.133361 0.81165 0.997886 46.2315 21.6565 +2 16.1746 0.0511092 0.0040001 0.00473312 16.1881 0.0564046 +3 26.336 0.358706 0.002 0.00268328 26.3507 0.365177 +4 1.11407 0.00572744 0.0068001 0.00670548 1.12812 0.0176484 +5 0.602837 0.00820789 0.0024 0.00195959 0.614937 0.0274884 Modified: trunk/explore/perf/STL/string/STLport.dat =================================================================== --- trunk/explore/perf/STL/string/STLport.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string/STLport.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,9 +1,9 @@ -1 2.31094 0.0286821 0.198012 0.0399326 2.58618 0.150026 -2 2.72257 0.0969052 0.0012 0.00183303 2.7285 0.0933664 -3 2.39375 0.0399707 0.0004 0.0012 2.42329 0.0324631 -4 1.5629 0.0886766 0.0052002 0.0117377 1.60486 0.122767 -5 0.757647 0.0217783 0.0040001 0.00565707 0.791689 0.0702165 -6 0.529232 0.00820812 0.0004 0.0012 0.529115 0.00753572 -7 1.08567 0.0142219 0.0032001 0.00466504 1.10422 0.0299288 -8 2.95098 0.033709 0.0012 0.00183303 2.96021 0.0398591 -9 1.70531 0.00820779 0.0052001 0.00820759 1.73507 0.0393262 +1 4.17906 0.040164 0.281617 0.0302119 4.46209 0.0267408 +2 6.05598 0.011378 0.004 0.00178885 6.06214 0.0109979 +3 5.40994 0.0137645 0.0048 0.00299333 5.41547 0.013554 +4 4.05905 0.0126562 0.002 0.002 4.06249 0.0127971 +5 2.06333 0.00733256 0.0032 0.0016 2.06686 0.0075237 +6 1.28208 0.00368798 0.0036 0.00215407 1.2859 0.00378534 +7 3.56662 0.0217048 0.0044 0.00417612 3.57178 0.0203811 +8 7.78049 0.0417638 0.0040001 0.00473312 7.78705 0.0388537 +9 4.66909 0.0441768 0.0048001 0.00587897 4.67489 0.0491 Modified: trunk/explore/perf/STL/string/libstd++.dat =================================================================== --- trunk/explore/perf/STL/string/libstd++.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string/libstd++.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,9 +1,9 @@ -1 2.08213 0.0199413 0.197212 0.0194372 2.31098 0.108541 -2 9.73021 0.065026 0.0044 0.0028 9.7968 0.105275 -3 4.94631 0.126338 0.0008 0.0024 5.02179 0.169225 -4 0.448428 0.00703188 0.0016 0.0026533 0.462126 0.0245025 -5 0.232414 0.00215407 0.0008 0.0016 0.237898 0.00753118 -6 0.444827 0.0016004 0.0004 0.0012 0.449459 0.00628683 -7 0.444827 0.0016004 0.0004 0.0012 0.449459 0.00628683 -8 4.32187 0.131293 0.0016 0.0026533 4.34871 0.124114 -9 4.32187 0.131293 0.0016 0.0026533 4.34871 0.124114 +1 3.31181 0.037842 0.307219 0.025664 3.7788 0.482719 +2 16.181 0.0611397 0.0164007 0.0166334 16.2299 0.0742153 +3 13.9601 0.260384 0.0056001 0.00624843 13.9818 0.251885 +4 1.16087 0.00560026 0.0024 0.00366606 1.16402 0.00563782 +5 0.592037 0.00473329 0.002 0.002 0.594456 0.00395796 +6 1.15887 0.00694014 0.004 0.00357771 1.16275 0.00746458 +7 1.15887 0.00694014 0.004 0.00357771 1.16275 0.00746458 +8 10.8259 0.133324 0.0028 0.0031241 10.832 0.134483 +9 10.8259 0.133324 0.0028 0.0031241 10.832 0.134483 Modified: trunk/explore/perf/STL/string/ropes/libstdc++.dat =================================================================== --- trunk/explore/perf/STL/string/ropes/libstdc++.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string/ropes/libstdc++.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,12 +1,12 @@ -64 0.074404 0.0026533 0.0008 0.0016 0.0749508 0.00173595 -128 0.0628035 0.0118056 0.0008 0.0016 0.0634294 0.0115921 -512 0.0638703 0.00982466 0.000533333 0.00135974 0.0644572 0.00959049 -1024 0.069204 0.0125927 0.0009 0.00167033 0.0699247 0.0126007 -4096 0.0961656 0.0550928 0.00088 0.00165699 0.0970222 0.0553574 -10240 0.154009 0.138777 0.000933333 0.00169181 0.154938 0.139022 -20480 0.254758 0.278233 0.00114286 0.00215331 0.255826 0.278642 -30420 0.382223 0.425995 0.0011 0.00209523 0.384542 0.428964 -40960 0.565102 0.654879 0.00106667 0.00204831 0.569649 0.661677 -51200 0.795049 0.92837 0.00112 0.00204587 0.800308 0.934306 -81920 1.18833 1.5265 0.00109091 0.00201154 1.19533 1.53433 -102400 1.63063 2.07075 0.00116667 0.00215381 1.63836 2.07776 +64 0.100806 0.00299333 0.0060002 0.0114897 0.121107 0.0545074 +128 0.103406 0.00405473 0.0046001 0.00860506 0.115436 0.0389932 +512 0.113873 0.0152406 0.0037334 0.00729843 0.122954 0.0336089 +1024 0.130008 0.0310246 0.00330005 0.00644311 0.137414 0.0384821 +4096 0.212733 0.16777 0.00328004 0.00591646 0.219322 0.167403 +10240 0.371423 0.386778 0.00346672 0.00572583 0.377715 0.38612 +20480 0.66307 0.799892 0.00320004 0.00543451 0.668947 0.798717 +30420 1.35698 1.98267 0.00305004 0.00518649 1.36265 1.98174 +40960 2.1456 2.91033 0.00288892 0.00499006 2.15116 2.90953 +51200 2.97883 3.72451 0.109767 0.322104 3.09131 3.94643 +81920 5.96383 10.0969 1.96067 5.86502 7.9283 15.7558 +102400 10.1386 16.8903 3.68173 8.00844 13.8255 24.7041 Modified: trunk/explore/perf/STL/string/ropes/rope.dat =================================================================== --- trunk/explore/perf/STL/string/ropes/rope.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string/ropes/rope.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,12 +1,12 @@ -64 0.370423 0.00512289 0.0012 0.00183303 0.371235 0.00657243 -128 0.417626 0.00571344 0.0012 0.00183303 0.419254 0.00552474 -512 0.521232 0.0067056 0.0008 0.0016 0.522763 0.00572293 -1024 0.576836 0.00711099 0.0012 0.00183303 0.593725 0.0342332 -4096 0.679242 0.0139493 0.0008 0.0016 0.696758 0.0310046 -10240 0.735646 0.0172011 0.0012 0.00183303 0.739894 0.0206492 -20480 0.781248 0.0135124 0.0024 0.00195959 0.782534 0.0132757 -30420 0.772448 0.015946 0.0004 0.0012 0.772377 0.0163696 -40960 0.835652 0.01425 0.0008 0.0016 0.836115 0.0151526 -51200 0.80725 0.0156777 0 0 0.807903 0.0143685 -81920 0.887655 0.0173861 0.0068003 0.0091306 0.92308 0.0391737 -102400 0.856453 0.0146924 0.0004 0.0012 0.858245 0.0143435 +64 1.02886 0.00688244 0.0032 0.00299333 1.03165 0.00799225 +128 1.14087 0.00711095 0.002 0.00268328 1.14404 0.00566074 +512 1.40489 0.00499641 0.0036 0.00417612 1.40916 0.00508287 +1024 1.5385 0.00804046 0.0028 0.00401995 1.54323 0.00707439 +4096 1.79291 0.00711093 0.0024 0.00195959 1.7958 0.00716246 +10240 1.92572 0.00697472 0.0024 0.00195959 1.92947 0.00754328 +20480 2.05493 0.0082077 0.0024 0.0026533 2.05723 0.00710228 +30420 2.02253 0.00512269 0.0008 0.0016 2.02537 0.00518897 +40960 2.17214 0.00645024 0.002 0.002 2.1744 0.00605553 +51200 2.10493 0.0112861 0.0028 0.00183303 2.10906 0.00976126 +81920 2.29574 0.00454331 0.0012 0.00183303 2.29743 0.00594112 +102400 2.24134 0.00670557 0.0016 0.00195959 2.24374 0.00708599 Modified: trunk/explore/perf/STL/string/ropes/string.dat =================================================================== --- trunk/explore/perf/STL/string/ropes/string.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string/ropes/string.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,12 +1,12 @@ -64 0.0472028 0.0016004 0.0004 0.0012 0.0480092 0.000727265 -128 0.048403 0.0012 0.0012 0.00183303 0.0493485 0.00043463 -512 0.071604 0.0012 0.0016 0.00195959 0.0731308 0.000763284 -1024 0.096806 0.0016 0.0004 0.0012 0.0973981 0.00104813 -4096 0.254016 0.0020005 0.0012 0.00183303 0.258154 0.00918671 -10240 0.566835 0.00360026 0.0016 0.00195959 0.569582 0.00559529 -20480 1.09607 0.00438196 0 0 1.10263 0.0181679 -30420 1.5517 0.00488301 0.0012 0.00256125 1.56166 0.022898 -40960 2.38455 0.00809011 0.0016 0.0026533 2.38753 0.00995547 -51200 3.10819 0.00737596 0.0016 0.0026533 3.13264 0.0370036 -81920 5.58315 0.0173491 0.0252013 0.0400843 5.67264 0.0932117 -102400 7.17405 0.0175465 0.0052001 0.00840027 7.20446 0.0429354 +64 0.0748042 0.00312443 0.0016 0.0026533 0.0843156 0.0238957 +128 0.086005 0.002 0.0024 0.0026533 0.0881502 0.00260921 +512 0.139608 0.00280031 0.004 0.00252982 0.143301 0.0011302 +1024 0.217613 0.00195959 0.0028 0.00256125 0.220388 0.0023365 +4096 0.680842 0.00391937 0.0016 0.00195959 0.682749 0.00452557 +10240 1.6497 0.076596 0.0040001 0.00692849 1.65561 0.07492 +20480 3.43861 0.0578089 0.0044001 0.00488286 3.44421 0.0604491 +30420 4.39107 0.0238711 0.002 0.00268328 4.39528 0.0225837 +40960 8.41773 0.0830097 0.0012 0.00183303 8.42173 0.0828798 +51200 11.6355 0.116077 0.0056 0.00195959 11.6445 0.116809 +81920 22.659 0.164012 0.002 0.00268328 22.6668 0.163658 +102400 33.0101 0.0675794 0.0028 0.00256125 33.0225 0.0665109 Modified: trunk/explore/perf/STL/string-MT/STLport-malloc.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-malloc.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string-MT/STLport-malloc.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,5 +1,6 @@ -1 4.61509 0.0244671 0.396824 0.0303494 2.58227 0.112393 -2 0 0 0 0 0.000226 2.5044e-05 -3 5.08512 0.469943 0.0016 0.00366606 2.64731 0.314747 -4 5.75676 1.21097 0.0340018 0.0297339 4.05433 0.597687 -5 3.37541 0.609803 0.0028 0.00256125 1.91545 0.196578 +1 8.40252 0.0420406 0.96246 0.401248 4.96751 0.70178 +2 0 0 0.0004 0.0012 0.002307 0.00567755 +3 13.1612 3.35447 0.0080002 0.00536694 6.68921 1.79517 +4 10.4419 1.91468 0.0060001 0.00651174 5.34985 1.09376 +5 4.53468 0.0194495 0.0044 0.0012 2.28911 0.0113522 +7 17.4703 1.75348 0.0100002 0.00544088 8.79241 0.905173 Modified: trunk/explore/perf/STL/string-MT/STLport-newalloc.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-newalloc.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string-MT/STLport-newalloc.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,5 +1,5 @@ -1 0 0 0.0004 0.0012 0.0001642 6.28967e-06 -2 0.0004 0.0012 0 0 0.000168 8.13634e-06 -3 0 0 0 0 0.0017253 0.00468624 -4 0 0 0 0 0.0033214 0.00631393 -5 0.0004 0.0012 0 0 0.0001648 6.74981e-06 +1 0 0 0.0004 0.0012 0.0024018 0.00595591 +2 0.0004 0.0012 0 0 0.00113 0.00220707 +3 0 0 0 0 0.0014289 0.00313837 +4 0.0004 0.0012 0 0 0.0022156 0.00544453 +5 0.0004 0.0012 0 0 0.0022303 0.00549463 Modified: trunk/explore/perf/STL/string-MT/STLport-ropes.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport-ropes.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string-MT/STLport-ropes.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,5 +1,5 @@ -1 92.6402 4.38415 0.938058 0.0701414 48.7245 0.986398 -2 15.5446 0.0462873 0.0052001 0.00594668 8.45295 0.585164 -3 149.629 15.6462 0.0752041 0.0526089 77.4415 6.31081 -4 0.980461 0.00937286 0.0024 0.0026533 0.499113 0.00449966 -5 0.496431 0.0124524 0.0008 0.0016 0.25924 0.0131223 +1 151.839 3.11779 39.4769 2.9413 701.946 122.957 +2 35.1442 0.0658343 0.144809 0.154741 19.073 0.166006 +3 273.087 3.17225 0.422826 0.624575 137.387 1.37411 +4 2.27094 0.0080104 0.0068001 0.00402018 1.16269 0.0365398 +5 1.18287 0.00360042 0.006 0.00409878 0.613921 0.0322286 Modified: trunk/explore/perf/STL/string-MT/STLport.dat =================================================================== --- trunk/explore/perf/STL/string-MT/STLport.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string-MT/STLport.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,9 +1,9 @@ -1 4.66629 0.0276712 0.373623 0.0273192 2.60623 0.119774 -2 0 0 0.0004 0.0012 0.0002158 2.68842e-05 -3 8.88776 0.482234 0.0016 0.0026533 4.4993 0.26795 -4 32.2844 1.37254 0.0024 0.00366606 16.4843 0.628127 -5 19.7612 2.28483 0.0016 0.00366606 10.041 1.0878 -6 1.04607 0.0032249 0.0004 0.0012 0.526378 0.00290039 -7 8.99536 1.81206 0.0004 0.0012 5.0254 0.886397 -8 36.3979 2.42634 0.0072002 0.00754752 18.6017 0.997204 -9 12.0148 1.26027 0.0072003 0.00775673 6.39541 0.567919 +1 8.45413 0.0636832 0.841252 0.0635536 4.69681 0.0123069 +2 0 0 0.0004 0.0012 0.0023791 0.00594233 +3 18.6964 0.45567 0.0128005 0.00587918 9.88164 0.249014 +4 65.3573 2.81207 0.0420022 0.0169952 32.8859 1.40916 +5 27.1641 3.23243 0.0204009 0.0120606 13.7122 1.66887 +6 2.53256 0.0028 0.0012 0.00183303 1.28451 0.0168405 +7 75.2971 1.01556 0.051603 0.0368132 37.9191 0.468911 +8 66.3165 1.56553 0.0424022 0.0239481 33.2749 0.770332 +9 22.0258 0.161011 0.0132004 0.00996858 11.1085 0.110625 Modified: trunk/explore/perf/STL/string-MT/libstd++.dat =================================================================== --- trunk/explore/perf/STL/string-MT/libstd++.dat 2006-10-17 06:45:48 UTC (rev 1333) +++ trunk/explore/perf/STL/string-MT/libstd++.dat 2006-10-17 06:48:45 UTC (rev 1334) @@ -1,9 +1,9 @@ -1 4.15866 0.0217046 0.421226 0.0256173 2.33339 0.00627724 -2 0 0 0 0 0.000219 2.99333e-05 -3 15.0613 2.49848 0.0036 0.00488262 7.66571 1.17504 -4 0.896456 0.0163425 0.0004 0.0012 0.456319 0.0154566 -5 0.465229 0.00183303 0 0 0.235501 0.00233858 -6 3.36381 0.805485 0.0012 0.00183303 1.83618 0.444846 -7 3.36381 0.805485 0.0012 0.00183303 1.83618 0.444846 -8 12.9048 1.56024 0.0156008 0.0198769 6.91651 0.847853 -9 12.9048 1.56024 0.0156008 0.0198769 6.91651 0.847853 +1 6.77202 0.0625741 1.01846 0.19914 4.06586 0.267526 +2 0 0 0.0012 0.00183303 0.0051849 0.0141821 +3 36.4871 10.8187 0.0432023 0.0404718 18.3421 5.41833 +4 2.29214 0.00593316 0.0028 0.00183303 1.16165 0.0224047 +5 1.16847 0.00280031 0.0044 0.00332265 0.597379 0.0126797 +6 2.29494 0.00694006 0.0044001 0.00454338 1.16298 0.0209739 +7 2.29494 0.00694006 0.0044001 0.00454338 1.16298 0.0209739 +8 28.2342 6.01936 0.0208008 0.0118396 14.2942 3.04222 +9 28.2342 6.01936 0.0208008 0.0118396 14.2942 3.04222 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-17 06:46:03
|
Revision: 1333 http://svn.sourceforge.net/complement/?rev=1333&view=rev Author: complement Date: 2006-10-16 23:45:48 -0700 (Mon, 16 Oct 2006) Log Message: ----------- fix typo Modified Paths: -------------- trunk/explore/perf/STL/stream/STLport-malloc.dat trunk/explore/perf/STL/stream/STLport.dat trunk/explore/perf/STL/stream/libstdc++.dat trunk/explore/perf/STL/stream/stdio.dat trunk/explore/perf/STL/stream/test.sh trunk/explore/perf/STL/stream/unistd.dat Modified: trunk/explore/perf/STL/stream/STLport-malloc.dat =================================================================== --- trunk/explore/perf/STL/stream/STLport-malloc.dat 2006-10-17 06:13:24 UTC (rev 1332) +++ trunk/explore/perf/STL/stream/STLport-malloc.dat 2006-10-17 06:45:48 UTC (rev 1333) @@ -1,3 +1,3 @@ -1 1.25208 0.0218372 0.0852049 0.0178045 1.34186 0.0124977 -2 0.390824 0.0242038 0.233214 0.0182483 0.625478 0.00819301 -3 0.64524 0.0124007 0.0652037 0.0133934 0.712191 0.00501622 +1 3.80744 0.0953505 0.155609 0.0175693 3.98723 0.117757 +2 0.836452 0.0205887 0.440827 0.0309237 1.28658 0.027712 +3 1.47209 0.0248532 0.119207 0.0158806 1.59693 0.0123747 Modified: trunk/explore/perf/STL/stream/STLport.dat =================================================================== --- trunk/explore/perf/STL/stream/STLport.dat 2006-10-17 06:13:24 UTC (rev 1332) +++ trunk/explore/perf/STL/stream/STLport.dat 2006-10-17 06:45:48 UTC (rev 1333) @@ -1,3 +1,3 @@ -1 1.10487 0.0148387 0.0908052 0.0240048 1.21098 0.0505606 -2 0.399625 0.0213518 0.220413 0.0242305 0.66411 0.123956 -3 0.659241 0.0175099 0.0884053 0.0212014 0.747317 0.0100438 +1 3.67543 0.143584 0.17201 0.0118668 3.85366 0.138982 +2 0.832052 0.0293957 0.438027 0.040529 1.28046 0.0264711 +3 1.5585 0.020878 0.113207 0.0176239 1.68422 0.0360132 Modified: trunk/explore/perf/STL/stream/libstdc++.dat =================================================================== --- trunk/explore/perf/STL/stream/libstdc++.dat 2006-10-17 06:13:24 UTC (rev 1332) +++ trunk/explore/perf/STL/stream/libstdc++.dat 2006-10-17 06:45:48 UTC (rev 1333) @@ -1,3 +1,3 @@ -1 1.72891 0.0156776 0.0592033 0.0111434 1.8005 0.0272222 -2 0.767648 0.0204327 0.156809 0.0199853 0.924416 0.00956276 -3 0.47843 0.0719869 0.088005 0.011028 0.567551 0.0751407 +1 3.76703 0.0884778 0.118807 0.019105 3.91713 0.108897 +2 1.30048 0.0235607 0.283217 0.0249045 1.59446 0.0244671 +3 1.20247 0.0146651 0.140408 0.015332 1.35296 0.0283691 Modified: trunk/explore/perf/STL/stream/stdio.dat =================================================================== --- trunk/explore/perf/STL/stream/stdio.dat 2006-10-17 06:13:24 UTC (rev 1332) +++ trunk/explore/perf/STL/stream/stdio.dat 2006-10-17 06:45:48 UTC (rev 1333) @@ -1,3 +1,3 @@ -1 1.89932 0.0150529 0.0460026 0.00880972 1.94603 0.009204 -2 0.288818 0.0212276 0.0860049 0.0236828 0.375959 0.00451534 -3 0.0616034 0.0112006 0.084005 0.0121334 0.146089 0.00322039 +1 3.2666 0.0542384 0.0948055 0.0196011 3.36694 0.0608409 +2 0.953259 0.0429743 0.178411 0.0198567 1.1415 0.03652 +3 0.342821 0.0125291 0.134408 0.00983109 0.48269 0.0169453 Modified: trunk/explore/perf/STL/stream/test.sh =================================================================== --- trunk/explore/perf/STL/stream/test.sh 2006-10-17 06:13:24 UTC (rev 1332) +++ trunk/explore/perf/STL/stream/test.sh 2006-10-17 06:45:48 UTC (rev 1333) @@ -1,6 +1,6 @@ #!/bin/sh # -# Time-stamp: <06/01/04 00:33:20 ptr> +# Time-stamp: <06/10/17 10:39:31 ptr> # BASEDIR=${PWD}/../../.. @@ -60,9 +60,8 @@ let j=j+1 done -rm -f unistd -touch unistd +rm -f unistd.dat +touch unistd.dat runtest fstream-raw/unistd echo 2 `../stat.awk s.log` >> unistd.dat - Modified: trunk/explore/perf/STL/stream/unistd.dat =================================================================== --- trunk/explore/perf/STL/stream/unistd.dat 2006-10-17 06:13:24 UTC (rev 1332) +++ trunk/explore/perf/STL/stream/unistd.dat 2006-10-17 06:45:48 UTC (rev 1333) @@ -1,3 +1 @@ -2 0.379223 0.0360822 39.9781 2.73226 40.6922 3.18697 -2 0.422426 0.0601157 40.0449 2.23477 41.4599 2.98098 -2 0.414825 0.0558619 38.0764 2.45333 38.8266 2.66855 +2 1.00646 0.0756292 74.7483 2.38617 76.5218 2.03552 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-17 06:13:28
|
Revision: 1332 http://svn.sourceforge.net/complement/?rev=1332&view=rev Author: complement Date: 2006-10-16 23:13:24 -0700 (Mon, 16 Oct 2006) Log Message: ----------- add tests with malloc Property Changed: ---------------- trunk/explore/perf/STL/build/lib/ Property changes on: trunk/explore/perf/STL/build/lib ___________________________________________________________________ Name: svn:ignore - *.so* texpr libstdc++ malloc newalloc noshortstr + *.so* texpr texpr-ma libstdc++ malloc newalloc noshortstr noshortstr-ma This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-17 06:13:03
|
Revision: 1331 http://svn.sourceforge.net/complement/?rev=1331&view=rev Author: complement Date: 2006-10-16 23:12:56 -0700 (Mon, 16 Oct 2006) Log Message: ----------- fix unistd data generation Modified Paths: -------------- trunk/explore/perf/STL/stream/test.sh Modified: trunk/explore/perf/STL/stream/test.sh =================================================================== --- trunk/explore/perf/STL/stream/test.sh 2006-10-17 06:11:29 UTC (rev 1330) +++ trunk/explore/perf/STL/stream/test.sh 2006-10-17 06:12:56 UTC (rev 1331) @@ -60,6 +60,9 @@ let j=j+1 done +rm -f unistd +touch unistd + runtest fstream-raw/unistd echo 2 `../stat.awk s.log` >> unistd.dat This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-17 06:11:59
|
Revision: 1330 http://svn.sourceforge.net/complement/?rev=1330&view=rev Author: complement Date: 2006-10-16 23:11:29 -0700 (Mon, 16 Oct 2006) Log Message: ----------- add tests with malloc Modified Paths: -------------- trunk/explore/perf/STL/lib/Makefile trunk/explore/perf/STL/string/add-proxy/Makefile trunk/explore/perf/STL/string/params-short/Makefile trunk/explore/perf/STL/string/test.sh trunk/explore/perf/STL/string-MT/add-proxy/Makefile trunk/explore/perf/STL/string-MT/params-short/Makefile trunk/explore/perf/STL/string-MT/test.sh Added Paths: ----------- trunk/explore/perf/STL/lib/noshortstr-ma/ trunk/explore/perf/STL/lib/noshortstr-ma/Makefile trunk/explore/perf/STL/lib/texpr-ma/ trunk/explore/perf/STL/lib/texpr-ma/Makefile trunk/explore/perf/STL/string/add-proxy/STLport-add-str-proxy-malloc/ trunk/explore/perf/STL/string/add-proxy/STLport-add-str-proxy-malloc/Makefile trunk/explore/perf/STL/string/params-short/STLport-malloc/ trunk/explore/perf/STL/string/params-short/STLport-malloc/Makefile trunk/explore/perf/STL/string/params-short/STLport-no-short-str-malloc/ trunk/explore/perf/STL/string/params-short/STLport-no-short-str-malloc/Makefile trunk/explore/perf/STL/string-MT/add-proxy/STLport-add-str-proxy-malloc/ trunk/explore/perf/STL/string-MT/add-proxy/STLport-add-str-proxy-malloc/Makefile trunk/explore/perf/STL/string-MT/params-short/STLport-malloc/ trunk/explore/perf/STL/string-MT/params-short/STLport-malloc/Makefile trunk/explore/perf/STL/string-MT/params-short/STLport-no-short-str-malloc/ trunk/explore/perf/STL/string-MT/params-short/STLport-no-short-str-malloc/Makefile Property Changed: ---------------- trunk/explore/perf/STL/string/add-proxy/STLport-malloc/ trunk/explore/perf/STL/string-MT/add-proxy/STLport-malloc/ Modified: trunk/explore/perf/STL/lib/Makefile =================================================================== --- trunk/explore/perf/STL/lib/Makefile 2006-10-16 21:05:09 UTC (rev 1329) +++ trunk/explore/perf/STL/lib/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -1,6 +1,6 @@ # -*- Makefile -*- Time-stamp: <05/12/26 23:57:38 ptr> -DIRS = default malloc newalloc misc noshortstr texpr +DIRS = default malloc newalloc misc noshortstr noshortstr-ma texpr texpr-ma # STLPORT_SRC_DIR = ${HOME}/STLport.lab/STLport # include file, generated by configure, if available Property changes on: trunk/explore/perf/STL/lib/noshortstr-ma ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/STL/lib/noshortstr-ma/Makefile =================================================================== --- trunk/explore/perf/STL/lib/noshortstr-ma/Makefile (rev 0) +++ trunk/explore/perf/STL/lib/noshortstr-ma/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -0,0 +1,32 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 01:08:40 ptr> + +# STLPORT_SRC_DIR := /export/home/ptr/STLport.lab/STLport +# include file, generated by configure, if available +-include ../../../../Makefiles/config.mak + +SRCROOT := ${STLPORT_DIR}/build +INSTALL_LIB_DIR := ../../build/lib/noshortstr-ma +INSTALL_LIB_DIR_DBG := . +INSTALL_LIB_DIR_STLDBG := . +INSTALL_BIN_DIR := . +INSTALL_BIN_DIR_DBG := . +INSTALL_BIN_DIR_STLDBG := . +ALL_TAGS := install-release-shared + +COMPILER_NAME := gcc + +STLPORT_INCLUDE_DIR = ${STLPORT_DIR}/stlport +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +ifeq ($(OSNAME),linux) +DEFS += -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE -D_STLP_LEAKS_PEDANTIC +endif + +DEFS += -D_STLP_USE_MALLOC -D_STLP_DONT_USE_SHORT_STRING_OPTIM + +# options for build with boost support +ifdef STLP_BUILD_BOOST_PATH +INCLUDES += -I$(STLP_BUILD_BOOST_PATH) +endif + Property changes on: trunk/explore/perf/STL/lib/texpr-ma ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/STL/lib/texpr-ma/Makefile =================================================================== --- trunk/explore/perf/STL/lib/texpr-ma/Makefile (rev 0) +++ trunk/explore/perf/STL/lib/texpr-ma/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -0,0 +1,32 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 01:08:40 ptr> + +# STLPORT_SRC_DIR := /export/home/ptr/STLport.lab/STLport +# include file, generated by configure, if available +-include ../../../../Makefiles/config.mak + +SRCROOT := ${STLPORT_DIR}/build +INSTALL_LIB_DIR := ../../build/lib/texpr-ma +INSTALL_LIB_DIR_DBG := . +INSTALL_LIB_DIR_STLDBG := . +INSTALL_BIN_DIR := . +INSTALL_BIN_DIR_DBG := . +INSTALL_BIN_DIR_STLDBG := . +ALL_TAGS := install-release-shared + +COMPILER_NAME := gcc + +STLPORT_INCLUDE_DIR = ${STLPORT_DIR}/stlport +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +ifeq ($(OSNAME),linux) +DEFS += -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE -D_STLP_LEAKS_PEDANTIC +endif + +DEFS += -D_STLP_USE_MALLOC -D_STLP_USE_TEMPLATE_EXPRESSION + +# options for build with boost support +ifdef STLP_BUILD_BOOST_PATH +INCLUDES += -I$(STLP_BUILD_BOOST_PATH) +endif + Modified: trunk/explore/perf/STL/string/add-proxy/Makefile =================================================================== --- trunk/explore/perf/STL/string/add-proxy/Makefile 2006-10-16 21:05:09 UTC (rev 1329) +++ trunk/explore/perf/STL/string/add-proxy/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -1,6 +1,6 @@ # -*- Makefile -*- Time-stamp: <05/12/27 00:39:55 ptr> -DIRS = STLport-default STLport-malloc STLport-add-str-proxy libstdc++ +DIRS = STLport-default STLport-malloc STLport-add-str-proxy STLport-add-str-proxy-malloc libstdc++ all: for d in $(DIRS); do \ Property changes on: trunk/explore/perf/STL/string/add-proxy/STLport-add-str-proxy-malloc ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/STL/string/add-proxy/STLport-add-str-proxy-malloc/Makefile =================================================================== --- trunk/explore/perf/STL/string/add-proxy/STLport-add-str-proxy-malloc/Makefile (rev 0) +++ trunk/explore/perf/STL/string/add-proxy/STLport-add-str-proxy-malloc/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 00:41:26 ptr> + +SRCROOT := ../../../../.. +COMPILER_NAME := gcc + +ALL_TAGS := release-shared + + +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +DEFS += -D_STLP_USE_MALLOC -D_STLP_USE_TEMPLATE_EXPRESSION + +release-shared: LDSEARCH = -L../../../build/lib/texpr-ma -Wl,-rpath=../build/lib/texpr-ma Property changes on: trunk/explore/perf/STL/string/add-proxy/STLport-malloc ___________________________________________________________________ Name: svn:ignore + obj Modified: trunk/explore/perf/STL/string/params-short/Makefile =================================================================== --- trunk/explore/perf/STL/string/params-short/Makefile 2006-10-16 21:05:09 UTC (rev 1329) +++ trunk/explore/perf/STL/string/params-short/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -1,6 +1,6 @@ # -*- Makefile -*- Time-stamp: <05/12/27 00:39:55 ptr> -DIRS = STLport-default STLport-no-short-str libstd++ +DIRS = STLport-default STLport-malloc STLport-no-short-str STLport-no-short-str-malloc libstd++ all: for d in $(DIRS); do \ Property changes on: trunk/explore/perf/STL/string/params-short/STLport-malloc ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/STL/string/params-short/STLport-malloc/Makefile =================================================================== --- trunk/explore/perf/STL/string/params-short/STLport-malloc/Makefile (rev 0) +++ trunk/explore/perf/STL/string/params-short/STLport-malloc/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 00:17:28 ptr> + +SRCROOT := ../../../../.. +COMPILER_NAME := gcc + +ALL_TAGS := release-shared + + +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +DEFS += -D_STLP_USE_MALLOC + +release-shared: LDSEARCH = -L../../../build/lib/malloc -Wl,-rpath=../build/lib/malloc Property changes on: trunk/explore/perf/STL/string/params-short/STLport-no-short-str-malloc ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/STL/string/params-short/STLport-no-short-str-malloc/Makefile =================================================================== --- trunk/explore/perf/STL/string/params-short/STLport-no-short-str-malloc/Makefile (rev 0) +++ trunk/explore/perf/STL/string/params-short/STLport-no-short-str-malloc/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 00:41:26 ptr> + +SRCROOT := ../../../../.. +COMPILER_NAME := gcc + +ALL_TAGS := release-shared + + +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +DEFS += -D_STLP_USE_MALLOC -D_STLP_DONT_USE_SHORT_STRING_OPTIM + +release-shared: LDSEARCH = -L../../../build/lib/noshortstr-ma -Wl,-rpath=../build/lib/noshortstr-ma Modified: trunk/explore/perf/STL/string/test.sh =================================================================== --- trunk/explore/perf/STL/string/test.sh 2006-10-16 21:05:09 UTC (rev 1329) +++ trunk/explore/perf/STL/string/test.sh 2006-10-17 06:11:29 UTC (rev 1330) @@ -1,6 +1,6 @@ #!/bin/sh # -# Time-stamp: <06/10/17 00:57:02 ptr> +# Time-stamp: <06/10/17 09:46:07 ptr> # BASEDIR=${PWD}/../../.. @@ -60,14 +60,19 @@ touch STLport-malloc.dat j=1 -for d in add find ops params params-ref ; do +for d in add find ops params params-ref params-short ; do runtest ${d}/STLport-malloc echo $j `../stat.awk s.log` >> STLport-malloc.dat let j=j+1 done +runtest params-short/STLport-no-short-str-malloc +echo $j `../stat.awk s.log` >> STLport-malloc.dat let j=j+1 runtest add-proxy/STLport-malloc echo $j `../stat.awk s.log` >> STLport-malloc.dat +let j=j+1 +runtest add-proxy/STLport-add-str-proxy-malloc +echo $j `../stat.awk s.log` >> STLport-malloc.dat rm -f STLport-newalloc.dat touch STLport-newalloc.dat Modified: trunk/explore/perf/STL/string-MT/add-proxy/Makefile =================================================================== --- trunk/explore/perf/STL/string-MT/add-proxy/Makefile 2006-10-16 21:05:09 UTC (rev 1329) +++ trunk/explore/perf/STL/string-MT/add-proxy/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -1,6 +1,6 @@ # -*- Makefile -*- Time-stamp: <05/12/27 00:39:55 ptr> -DIRS = STLport-default STLport-malloc STLport-add-str-proxy libstdc++ +DIRS = STLport-default STLport-malloc STLport-add-str-proxy STLport-add-str-proxy-malloc libstdc++ all: for d in $(DIRS); do \ Property changes on: trunk/explore/perf/STL/string-MT/add-proxy/STLport-add-str-proxy-malloc ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/STL/string-MT/add-proxy/STLport-add-str-proxy-malloc/Makefile =================================================================== --- trunk/explore/perf/STL/string-MT/add-proxy/STLport-add-str-proxy-malloc/Makefile (rev 0) +++ trunk/explore/perf/STL/string-MT/add-proxy/STLport-add-str-proxy-malloc/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 00:41:26 ptr> + +SRCROOT := ../../../../.. +COMPILER_NAME := gcc + +ALL_TAGS := release-shared + + +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +DEFS += -D_STLP_USE_MALLOC -D_STLP_USE_TEMPLATE_EXPRESSION + +release-shared: LDSEARCH = -L../../../build/lib/texpr-ma -Wl,-rpath=../build/lib/texpr-ma Property changes on: trunk/explore/perf/STL/string-MT/add-proxy/STLport-malloc ___________________________________________________________________ Name: svn:ignore + obj Modified: trunk/explore/perf/STL/string-MT/params-short/Makefile =================================================================== --- trunk/explore/perf/STL/string-MT/params-short/Makefile 2006-10-16 21:05:09 UTC (rev 1329) +++ trunk/explore/perf/STL/string-MT/params-short/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -1,6 +1,6 @@ # -*- Makefile -*- Time-stamp: <05/12/27 01:05:09 ptr> -DIRS = STLport-default STLport-no-short-str libstd++ +DIRS = STLport-default STLport-malloc STLport-no-short-str STLport-no-short-str-malloc libstd++ all: for d in $(DIRS); do \ Property changes on: trunk/explore/perf/STL/string-MT/params-short/STLport-malloc ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/STL/string-MT/params-short/STLport-malloc/Makefile =================================================================== --- trunk/explore/perf/STL/string-MT/params-short/STLport-malloc/Makefile (rev 0) +++ trunk/explore/perf/STL/string-MT/params-short/STLport-malloc/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 01:05:47 ptr> + +SRCROOT := ../../../../.. +COMPILER_NAME := gcc + +ALL_TAGS := release-shared + + +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +DEFS += -D_STLP_USE_MALLOC + +release-shared: LDSEARCH = -L../../../build/lib/malloc -Wl,-rpath=../build/lib/malloc Property changes on: trunk/explore/perf/STL/string-MT/params-short/STLport-no-short-str-malloc ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/perf/STL/string-MT/params-short/STLport-no-short-str-malloc/Makefile =================================================================== --- trunk/explore/perf/STL/string-MT/params-short/STLport-no-short-str-malloc/Makefile (rev 0) +++ trunk/explore/perf/STL/string-MT/params-short/STLport-no-short-str-malloc/Makefile 2006-10-17 06:11:29 UTC (rev 1330) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 01:05:47 ptr> + +SRCROOT := ../../../../.. +COMPILER_NAME := gcc + +ALL_TAGS := release-shared + + +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +DEFS += -D_STLP_USE_MALLOC -D_STLP_DONT_USE_SHORT_STRING_OPTIM + +release-shared: LDSEARCH = -L../../../build/lib/noshortstr-ma -Wl,-rpath=../build/lib/noshortstr-ma Modified: trunk/explore/perf/STL/string-MT/test.sh =================================================================== --- trunk/explore/perf/STL/string-MT/test.sh 2006-10-16 21:05:09 UTC (rev 1329) +++ trunk/explore/perf/STL/string-MT/test.sh 2006-10-17 06:11:29 UTC (rev 1330) @@ -1,6 +1,6 @@ #!/bin/sh # -# Time-stamp: <06/10/17 01:00:43 ptr> +# Time-stamp: <06/10/17 10:02:31 ptr> # BASEDIR=${PWD}/../../.. @@ -60,14 +60,19 @@ touch STLport-malloc.dat j=1 -for d in add find ops params params-ref ; do +for d in add find ops params params-ref params-short ; do runtest ${d}/STLport-malloc echo $j `../stat.awk s.log` >> STLport-malloc.dat let j=j+1 done +runtest params-short/STLport-no-short-str-malloc +echo $j `../stat.awk s.log` >> STLport-malloc.dat let j=j+1 runtest add-proxy/STLport-malloc echo $j `../stat.awk s.log` >> STLport-malloc.dat +let j=j+1 +runtest add-proxy/STLport-add-str-proxy-malloc +echo $j `../stat.awk s.log` >> STLport-malloc.dat rm -f STLport-newalloc.dat touch STLport-newalloc.dat This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <com...@us...> - 2006-10-16 21:05:28
|
Revision: 1329 http://svn.sourceforge.net/complement/?rev=1329&view=rev Author: complement Date: 2006-10-16 14:05:09 -0700 (Mon, 16 Oct 2006) Log Message: ----------- test with malloc in add-proxy added Modified Paths: -------------- trunk/explore/perf/STL/compare.tex trunk/explore/perf/STL/string/add-proxy/Makefile trunk/explore/perf/STL/string/test.sh trunk/explore/perf/STL/string-MT/add-proxy/Makefile trunk/explore/perf/STL/string-MT/test.sh trunk/explore/perf/STL/strings.gplot Added Paths: ----------- trunk/explore/perf/STL/string/add-proxy/STLport-malloc/ trunk/explore/perf/STL/string/add-proxy/STLport-malloc/Makefile trunk/explore/perf/STL/string-MT/add-proxy/STLport-malloc/ trunk/explore/perf/STL/string-MT/add-proxy/STLport-malloc/Makefile Property Changed: ---------------- trunk/explore/perf/STL/ Property changes on: trunk/explore/perf/STL ___________________________________________________________________ Name: svn:ignore - *.pcl compare.dvi compare.aux compare.toc compare.log compare.ps compare.pdf alloc.eps alloc.tex strings-MT-t-libstd.eps strings-MT-t-libstd.tex strings-MT-t-stlp-m.eps strings-MT-t-stlp-m.tex strings-MT-t-stlp-n.eps strings-MT-t-stlp-n.tex strings-MT-t-stlp-r.eps strings-MT-t-stlp-r.tex str-rope.eps str-rope.tex str-rope-1.eps str-rope-1.tex strings-MT.eps strings-MT.tex strings-MT2.eps strings-MT2.tex strings.eps strings.tex streams.eps streams.tex str-rope-2.eps str-rope-2.tex intel-amd.eps intel-amd.tex build + *.pcl compare.dvi compare.aux compare.toc compare.log compare.ps compare.pdf alloc.eps alloc.tex alloc-2_2_5.eps alloc-2_2_5.tex strings-MT-t-libstd.eps strings-MT-t-libstd.tex strings-MT-t-stlp-m.eps strings-MT-t-stlp-m.tex strings-MT-t-stlp-n.eps strings-MT-t-stlp-n.tex strings-MT-t-stlp-r.eps strings-MT-t-stlp-r.tex str-rope.eps str-rope.tex str-rope-1.eps str-rope-1.tex strings-MT.eps strings-MT.tex strings-MT2.eps strings-MT2.tex strings.eps strings.tex streams.eps streams.tex streams-1.eps streams-1.tex str-rope-2.eps str-rope-2.tex intel-amd.eps intel-amd.tex build Modified: trunk/explore/perf/STL/compare.tex =================================================================== --- trunk/explore/perf/STL/compare.tex 2006-10-16 20:16:12 UTC (rev 1328) +++ trunk/explore/perf/STL/compare.tex 2006-10-16 21:05:09 UTC (rev 1329) @@ -1,4 +1,4 @@ -% -*- LaTeX -*- Time-stamp: <06/10/16 19:00:51 ptr> +% -*- LaTeX -*- Time-stamp: <06/10/17 00:43:24 ptr> \documentclass[a4paper]{article} @@ -49,12 +49,13 @@ In the tests was used following computers and operational envirinments: \begin{enumerate} \item Tyan Tiger motherboard, two $1.33$-GHz - AMD$^{\mbox{\tiny\textregistered}}$ Athlon$^{\mbox{\tiny\textregistered}}$ XP 1500+ processors under Linux (kernel 2.6.16.26, \verb|glibc| 2{.}3{.}6);\label{AMD} + AMD$^{\mbox{\tiny\textregistered}}$ Athlon$^{\mbox{\tiny TM}}$ XP 1500+ processors under Linux (kernel 2{.}6{.}16{.}26, \verb|glibc| 2{.}3{.}6);\label{AMD} + \item Two $2.6$-GHz AMD$^{\mbox{\tiny\textregistered}}$ Opteron$^{\mbox{\tiny TM}}$ 252 processors under Linux (kernel 2{.}6{.}15, x86\_64, \verb|glibc| 2{.}3{.}6)\label{AMD64} \end{enumerate} \section{Compilers} -In tests was used GNU gcc 3{.}4{.}4 or 4{.}1{.}1 +In tests was used GNU gcc 3{.}4{.}4 (on AMD64) or 4{.}1{.}1 (on AMD) with appropriate \verb|libstdc++| libraries (version~3). @@ -137,7 +138,7 @@ \input strings.tex \end{center} \caption{STL strings implementations comparison. Single thread. $t$ is a wall time - for tests. + for tests. On X-axis you see test's number (see text). The implementation of strings in \STLport{} (non-COW) drammaticaly faster than COW implementations (\libstd{} and ropes in \STLport{}) in tests that modify strings. @@ -232,6 +233,10 @@ For \libstd{} both \#8 and \#9 are the same test. +The figure~\ref{STLport-gpp-strings} show that \STLport{} implementation +give better results even without expression templates. But with +expression templates the results are better more then twice. + \section{Role of Allocators} Note: in the \verb|glibc| 2{.}3{.}6 enhancement of memory allocation @@ -258,6 +263,14 @@ Wall time for tests. \label{STLport-alloc-strings}} \end{figure} +\begin{figure} + \begin{center} + \input alloc-2_2_5.tex + \end{center} + \caption{Role of memory allocator in strings implementation (\STLport), \texttt{glibc} 2{.}2{.}5. + Wall time for tests. \label{STLport-alloc-ii-ii-v-strings}} +\end{figure} + Let's repeat tests from section~\ref{TestsDescr} for \STLport{} with different allocators. We see (fig.~\ref{STLport-alloc-strings}) that all allocators are good enough @@ -266,10 +279,14 @@ %operations (test~1) the ``optimized'' \verb|node_alloc| has a tiny advantage %(difference between best and worst allocators is $3\%$). For search operations (test~2) the results as expected -are the same (within measure of inaccuracy). The tests 4 and 5 show +are the same (within measure of inaccuracy). + +The tests 4 and 5 show that cost of \verb|malloc| system call---\verb|node_alloc| reuse once allocated memory. But copy of string's content still present (compare with time of -\libstd{} on fig.~\ref{STLport-gpp-strings}). +\libstd{} on fig.~\ref{STLport-gpp-strings}). In the past (\verb|glibc| 2{.}2{.}5) +the cost of \verb|malloc| was significant, but now it near zero (compare graphics +\ref{STLport-alloc-strings} and \ref{STLport-alloc-ii-ii-v-strings}). \section{Strings in Multithreaded Environment} @@ -289,7 +306,7 @@ \input strings-MT.tex \end{center} \caption{Tests wall time (\libstd{} and \STLport{} - strings) in MT environment (two threads). + strings) in multi-threaded environment (two threads). \label{STLport-gpp-MT-strings}} \end{figure} @@ -298,7 +315,7 @@ \input strings-MT2.tex \end{center} \caption{Tests wall time (\libstd{} and \STLport{} - strings) in MT environment (two threads) (same as fig.~\ref{STLport-gpp-MT-strings}, another scale). + strings) in multi-threaded environment (two threads) (same as fig.~\ref{STLport-gpp-MT-strings}, another scale). \label{STLport-gpp-MT-strings2}} \end{figure} @@ -318,7 +335,7 @@ \end{center} \caption{ Wall time, user time and system time per thread for - \libstd{} in MT environment. + \libstd{} in multi-threaded environment. \label{gpp-MT-strings-t}} \end{figure} @@ -342,7 +359,7 @@ \end{center} \caption{ Wall time, user time and system time per thread for - \STLport{} (node allocator) in MT environment. + \STLport{} (node allocator) in multi-threaded environment. \label{STLport-MT-strings-t}} \end{figure} @@ -352,7 +369,7 @@ \end{center} \caption{ Wall time, user time and system time per thread for - \STLport{} (malloc allocator) in MT environment. + \STLport{} (malloc allocator) in multi-threaded environment. \label{STLport-MT-strings-m}} \end{figure} @@ -362,7 +379,7 @@ \end{center} \caption{ Wall time, user time and system time per thread for - \STLport{} ropes in MT environment. + \STLport{} ropes in multi-threaded environment. \label{STLport-MT-strings-r}} \end{figure} @@ -371,14 +388,14 @@ \texttt{node\_alloc}-based, figure~\ref{STLport-MT-strings-m} show profile for tests with \texttt{malloc}-based allocators, and figure~\ref{STLport-MT-strings-r} for ropes. -The surprise for me was that \texttt{malloc}-based variant +The surprise for me was that \texttt{malloc}-based variants win (in $1.5--2$ times faster) over \texttt{node\_alloc}-based variant in tests \#3, \#4 and \#5. This fact can be explained by usage of memory allocated chunks vector in \texttt{node\_alloc}. This vector accessed from different threads and such access should use thread synchronization primitives. Compare figures~\ref{STLport-alloc-strings} and \ref{STLport-gpp-MT-strings}. -The tests~1--2 has the same time in MT and non-MT context for +The tests~1--2 has the same time in multi-threaded and single-threaded context for \texttt{malloc}-based and \texttt{node\_alloc}-based allocators. In test~3 \texttt{malloc}-based variant climb down, while \texttt{node\_alloc}-based keep position. @@ -516,7 +533,7 @@ significant better than C \verb|fwrite|). With raw write to string stream (or in char buffer in case of C) the pure C variant is 3--4 times faster. -As about Intel$^{\mbox{\tiny\textregistered}}$ vs. AMD$^{\mbox{\tiny\textregistered}}$, no comments---see figure~\ref{intel-amd} on page~\pageref{intel-amd}. +% As about Intel$^{\mbox{\tiny\textregistered}}$ vs. AMD$^{\mbox{\tiny\textregistered}}$, no comments---see figure~\ref{intel-amd} on page~\pageref{intel-amd}. \section{References} Modified: trunk/explore/perf/STL/string/add-proxy/Makefile =================================================================== --- trunk/explore/perf/STL/string/add-proxy/Makefile 2006-10-16 20:16:12 UTC (rev 1328) +++ trunk/explore/perf/STL/string/add-proxy/Makefile 2006-10-16 21:05:09 UTC (rev 1329) @@ -1,6 +1,6 @@ # -*- Makefile -*- Time-stamp: <05/12/27 00:39:55 ptr> -DIRS = STLport-default STLport-add-str-proxy libstdc++ +DIRS = STLport-default STLport-malloc STLport-add-str-proxy libstdc++ all: for d in $(DIRS); do \ Added: trunk/explore/perf/STL/string/add-proxy/STLport-malloc/Makefile =================================================================== --- trunk/explore/perf/STL/string/add-proxy/STLport-malloc/Makefile (rev 0) +++ trunk/explore/perf/STL/string/add-proxy/STLport-malloc/Makefile 2006-10-16 21:05:09 UTC (rev 1329) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 00:41:26 ptr> + +SRCROOT := ../../../../.. +COMPILER_NAME := gcc + +ALL_TAGS := release-shared + + +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +DEFS += -D_STLP_USE_MALLOC + +release-shared: LDSEARCH = -L../../../build/lib/malloc -Wl,-rpath=../build/lib/malloc Modified: trunk/explore/perf/STL/string/test.sh =================================================================== --- trunk/explore/perf/STL/string/test.sh 2006-10-16 20:16:12 UTC (rev 1328) +++ trunk/explore/perf/STL/string/test.sh 2006-10-16 21:05:09 UTC (rev 1329) @@ -1,6 +1,6 @@ #!/bin/sh # -# Time-stamp: <06/10/16 18:25:07 ptr> +# Time-stamp: <06/10/17 00:57:02 ptr> # BASEDIR=${PWD}/../../.. @@ -65,6 +65,9 @@ echo $j `../stat.awk s.log` >> STLport-malloc.dat let j=j+1 done +let j=j+1 +runtest add-proxy/STLport-malloc +echo $j `../stat.awk s.log` >> STLport-malloc.dat rm -f STLport-newalloc.dat touch STLport-newalloc.dat Modified: trunk/explore/perf/STL/string-MT/add-proxy/Makefile =================================================================== --- trunk/explore/perf/STL/string-MT/add-proxy/Makefile 2006-10-16 20:16:12 UTC (rev 1328) +++ trunk/explore/perf/STL/string-MT/add-proxy/Makefile 2006-10-16 21:05:09 UTC (rev 1329) @@ -1,6 +1,6 @@ # -*- Makefile -*- Time-stamp: <05/12/27 00:39:55 ptr> -DIRS = STLport-default STLport-add-str-proxy libstdc++ +DIRS = STLport-default STLport-malloc STLport-add-str-proxy libstdc++ all: for d in $(DIRS); do \ Added: trunk/explore/perf/STL/string-MT/add-proxy/STLport-malloc/Makefile =================================================================== --- trunk/explore/perf/STL/string-MT/add-proxy/STLport-malloc/Makefile (rev 0) +++ trunk/explore/perf/STL/string-MT/add-proxy/STLport-malloc/Makefile 2006-10-16 21:05:09 UTC (rev 1329) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <05/12/27 00:41:26 ptr> + +SRCROOT := ../../../../.. +COMPILER_NAME := gcc + +ALL_TAGS := release-shared + + +include ../Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + +DEFS += -D_STLP_USE_MALLOC + +release-shared: LDSEARCH = -L../../../build/lib/malloc -Wl,-rpath=../build/lib/malloc Modified: trunk/explore/perf/STL/string-MT/test.sh =================================================================== --- trunk/explore/perf/STL/string-MT/test.sh 2006-10-16 20:16:12 UTC (rev 1328) +++ trunk/explore/perf/STL/string-MT/test.sh 2006-10-16 21:05:09 UTC (rev 1329) @@ -1,6 +1,6 @@ #!/bin/sh # -# Time-stamp: <06/10/16 21:52:27 ptr> +# Time-stamp: <06/10/17 01:00:43 ptr> # BASEDIR=${PWD}/../../.. @@ -65,6 +65,9 @@ echo $j `../stat.awk s.log` >> STLport-malloc.dat let j=j+1 done +let j=j+1 +runtest add-proxy/STLport-malloc +echo $j `../stat.awk s.log` >> STLport-malloc.dat rm -f STLport-newalloc.dat touch STLport-newalloc.dat Modified: trunk/explore/perf/STL/strings.gplot =================================================================== --- trunk/explore/perf/STL/strings.gplot 2006-10-16 20:16:12 UTC (rev 1328) +++ trunk/explore/perf/STL/strings.gplot 2006-10-16 21:05:09 UTC (rev 1329) @@ -55,7 +55,7 @@ #pause(-1) -set output "alloc-2.2.5.eps" +set output "alloc-2_2_5.eps" plot [0.9:9.1] 'string/STLport-2.2.5.dat' using ($1):($6) notitle w l lt 1, \ 'string/STLport-2.2.5.dat' using ($1):($6):($7) title "node alloc" w yerrorbars lt 1, \ @@ -68,7 +68,7 @@ set output "strings-MT.eps" -plot [0.9:9.1][0:250] 'string-MT/STLport.dat' using ($1):($6) notitle w l lt 1, \ +plot [0.9:9.1] 'string-MT/STLport.dat' using ($1):($6) notitle w l lt 1, \ 'string-MT/STLport.dat' using ($1):($6):($7) title "node alloc" w yerrorbars lt 1, \ 'string-MT/libstd++.dat' using ($1):($6) notitle w l lt 2, \ 'string-MT/libstd++.dat' using ($1):($6):($7) title "libstd++" w yerrorbars lt 2, \ @@ -81,7 +81,7 @@ set output "strings-MT2.eps" -plot [0.9:9.1][0:50] 'string-MT/STLport.dat' using ($1):($6) notitle w l lt 1, \ +plot [0.9:9.1][0:25] 'string-MT/STLport.dat' using ($1):($6) notitle w l lt 1, \ 'string-MT/STLport.dat' using ($1):($6):($7) title "node alloc" w yerrorbars lt 1, \ 'string-MT/libstd++.dat' using ($1):($6) notitle w l lt 2, \ 'string-MT/libstd++.dat' using ($1):($6):($7) title "libstd++" w yerrorbars lt 2, \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |