diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-01-03 22:15:20 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-01-03 22:15:20 +0000 |
commit | 5ad28aafd79e77ce42b55cc86390439a706691bc (patch) | |
tree | 367dfcb28f1e7aa77eede1174af9c89bb2114fe7 /performance-tests | |
parent | c41f65963d4d61181ecc9163227183cd6626c846 (diff) | |
download | ATCD-5ad28aafd79e77ce42b55cc86390439a706691bc.tar.gz |
*** empty log message ***
Diffstat (limited to 'performance-tests')
5 files changed, 19 insertions, 20 deletions
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.cpp index 34e6b424f06..713f9c71ad8 100644 --- a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.cpp +++ b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.cpp @@ -15,6 +15,11 @@ int buffer; /* static */ sig_atomic_t Benchmark_Performance::done_ = 0; +Benchmark_Performance_Test_Base::Benchmark_Performance_Test_Base (void) + : Benchmark_Base (Benchmark_Base::PERFORMANCE) +{ +} + sig_atomic_t Benchmark_Performance::done (void) { diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h index 364c9f7d432..116b8a90dbc 100644 --- a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h +++ b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h @@ -13,9 +13,17 @@ extern int buffer; extern ACE_Svc_Export int synch_count; +class SYNCHLIB_Export Benchmark_Performance_Test_Base : public Benchmark_Base +{ + // = TITLE + // This class identifies itself as Benmarking Performance Test class. +protected: + Benchmark_Performance_Test_Base (void); +}; + class ACE_Svc_Export Benchmark_Performance : public Benchmark_Performance_Test_Base { - // TITLE + // = TITLE // Base class for all the timing tests. public: // = Hooks inherited from ACE_Service_Object. diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.cpp index fd2f244c93e..ee47535b953 100644 --- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.cpp +++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.cpp @@ -89,19 +89,19 @@ Performance_Test::run_test (void) rate, (1.0e6 / rate) / synch_count)); performance_test_options.print_results (); + return 0; +} +int +Performance_Test::post_run_test (void) +{ // Allow thread(s) to finish up. ACE_Thread_Manager::instance ()->resume_all (); // Wait for all the threads to exit. ACE_Thread_Manager::instance ()->wait (); performance_test_options.init (); - return 0; -} -int -Performance_Test::post_run_test (void) -{ return 0; } diff --git a/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.cpp b/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.cpp index 04c3fbc52d2..26c0e650856 100644 --- a/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.cpp +++ b/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.cpp @@ -66,11 +66,6 @@ Benchmark_Method_Base::exec (ACE_Service_Repository_Iterator *sri) return 0; } -Benchmark_Performance_Test_Base::Benchmark_Performance_Test_Base (void) - : Benchmark_Base (Benchmark_Base::PERFORMANCE) -{ -} - #if defined (ACE_HAS_PTHREADS) || defined (ACE_HAS_DCETHREADS) || defined (VXWORKS) /* static */ MT_INT Thr_ID::thread_id_ (0); diff --git a/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.h b/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.h index 7a43436f0f9..915882f132e 100644 --- a/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.h +++ b/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.h @@ -109,14 +109,5 @@ protected: Benchmark_Method_Base (void); }; -class SYNCHLIB_Export Benchmark_Performance_Test_Base : public Benchmark_Base -{ - // = TITLE - // This class identifies itself as Benmarking Performance Test class. -protected: - Benchmark_Performance_Test_Base (void); -}; - - # endif /* ACE_HAS_THREADS */ #endif /* ACE_BENCHMARK_BASE_H */ |