diff options
author | arvindk <arvindk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-04-10 20:10:40 +0000 |
---|---|---|
committer | arvindk <arvindk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-04-10 20:10:40 +0000 |
commit | 02e74141ce481403293ad2b882616b2667f14e0b (patch) | |
tree | d5d9f22a8abf55e3dd289eaafedeb4d9a3ef098f | |
parent | 2f9737482e8a4f22221778d382196b8b1e5b5ee6 (diff) | |
download | ATCD-02e74141ce481403293ad2b882616b2667f14e0b.tar.gz |
ChangelogTag: Sun Apr 10 15:05:35 2005 Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | tests/Memcpy_Test.cpp | 12 | ||||
-rw-r--r-- | tests/tests.mpc | 2 |
3 files changed, 16 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index aa8692bb59a..59d44e86947 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Sun Apr 10 15:05:35 2005 Arvind S. Krishna <arvindk@dre.vanderbilt.edu> + + * tests/tests.mpc: + * tests/Memcpy_Test.cpp: + + Changed the name of the test to ensure that it is same as the + log file created. + Sun Apr 10 03:02:21 2005 Ossama Othman <ossama@dre.vanderbilt.edu> * ace/config-g++-common.h: diff --git a/tests/Memcpy_Test.cpp b/tests/Memcpy_Test.cpp index 8dccd5fe40e..e5aac4c21ff 100644 --- a/tests/Memcpy_Test.cpp +++ b/tests/Memcpy_Test.cpp @@ -50,18 +50,18 @@ namespace { enum { ITERATIONS = 1000000 } ; } int run_main (int, ACE_TCHAR *[]) { - ACE_START_TEST (ACE_TEXT ("Memcopy Performance Test")); + ACE_START_TEST (ACE_TEXT ("Memcpy_Test")); //ACE_Time_Value start, now ; struct timeval start, now; for( int i = ITERATIONS ; i > 0 ; --i) { - testit( 0) ; + testit(0) ; } start = ACE_OS::gettimeofday () ; for( int i = ITERATIONS ; i > 0 ; --i) { - testit( 0) ; + testit(0) ; } now = ACE_OS::gettimeofday() ; @@ -75,15 +75,17 @@ run_main (int, ACE_TCHAR *[]) start = ACE_OS::gettimeofday () ; for( int i = ITERATIONS ; i > 0 ; --i) { - testit( 1) ; + testit(1) ; } now = ACE_OS::gettimeofday() ; double slow = 1000000 * (now.tv_sec-start.tv_sec) + now.tv_usec - start.tv_usec ; ACE_DEBUG ((LM_DEBUG, - ACE_TEXT ("%f uSec per iteration for fast version.\n"), + ACE_TEXT ("%f uSec per iteration for slow version.\n"), slow / ITERATIONS )) ; + ACE_END_TEST; + return 0 ; } diff --git a/tests/tests.mpc b/tests/tests.mpc index 7e713ec2c2b..4e98ad6e757 100644 --- a/tests/tests.mpc +++ b/tests/tests.mpc @@ -154,7 +154,7 @@ project(Cache Map Manager Test) : acetest { } } -project(Mem Copy Test) : acetest { +project(Memcpy_Test) : acetest { exename = Memcpy_Test Source_Files { Memcpy_Test.cpp |