summaryrefslogtreecommitdiff
path: root/performance-tests/Synch-Benchmarks/Synch_Lib
diff options
context:
space:
mode:
Diffstat (limited to 'performance-tests/Synch-Benchmarks/Synch_Lib')
-rw-r--r--performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.cpp99
-rw-r--r--performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.h113
-rw-r--r--performance-tests/Synch-Benchmarks/Synch_Lib/Makefile126
-rw-r--r--performance-tests/Synch-Benchmarks/Synch_Lib/README4
-rw-r--r--performance-tests/Synch-Benchmarks/Synch_Lib/Synch_Lib.dsp99
-rw-r--r--performance-tests/Synch-Benchmarks/Synch_Lib/export_mac.h36
6 files changed, 0 insertions, 477 deletions
diff --git a/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.cpp b/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.cpp
deleted file mode 100644
index 26c0e650856..00000000000
--- a/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-// $Id$
-
-#define SYNCHLIB_BUILD_DLL
-#include "Benchmark_Base.h"
-
-ACE_RCSID(Synch_Benchmarks, Benchmark_Base, "$Id$")
-
-#if defined (ACE_HAS_THREADS)
-
-// Initialize the static variables.
-/* static */
-
-Benchmark_Base::Benchmark_Base (int type)
- : benchmark_type_ (type)
-{
-}
-
-int
-Benchmark_Base::benchmark_type (void)
-{
- return this->benchmark_type_;
-}
-
-int
-Benchmark_Base::thr_id (void)
-{
-#if defined (ACE_HAS_PTHREADS) || defined (ACE_HAS_DCETHREADS) || defined (VXWORKS)
- // This invokes the thread-specific storage smart pointer.
- return this->id_->thr_id ();
-#else
- return ACE_Thread::self ();
-#endif /* ACE_HAS_PTHREADS || ACE_HAS_DCETHREADS || VXWORKS */
-}
-
-Benchmark_Method_Base::Benchmark_Method_Base (void)
- : Benchmark_Base (Benchmark_Base::METHOD)
-{
-}
-
-int
-Benchmark_Method_Base::exec (ACE_Service_Repository_Iterator *sri)
-{
- sri->advance ();
- for (const ACE_Service_Type *sr;
- sri->next (sr) != 0;
- sri->advance ())
- {
- // This would greatly benefit from RTTI typesafe downcasting...
- const ACE_Service_Type_Impl *type = sr->type ();
- const void *obj = type->object ();
- ACE_Service_Object *so = (ACE_Service_Object *) obj;
- Benchmark_Base *bp = (Benchmark_Base *) so;
-
- if (this->valid_test_object (bp))
- {
-
- ACE_DEBUG ((LM_DEBUG, "\nstarting up %s\n", sr->name ()));
-
- int notused = this->pre_run_test (bp) == 0 && this->run_test () == 0 &&
- this->post_run_test () == 0;
- notused = notused;
- }
- else
- return 0;
- }
- return 0;
-}
-
-#if defined (ACE_HAS_PTHREADS) || defined (ACE_HAS_DCETHREADS) || defined (VXWORKS)
-/* static */
-MT_INT Thr_ID::thread_id_ (0);
-
-Thr_ID::Thr_ID (void)
- : thr_id_ (++Thr_ID::thread_id_)
-{
-}
-
-int
-Thr_ID::thr_id (void)
-{
- return this->thr_id_;
-}
-
-void
-Thr_ID::thr_id (int i)
-{
- this->thr_id_ = i;
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_TSS<Thr_ID>;
-template class ACE_Atomic_Op<ACE_Thread_Mutex, int>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_TSS<Thr_ID>
-#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-#endif /* ACE_HAS_PTHREADS || ACE_HAS_DCETHREADS || VXWORKS */
-#endif /* ACE_HAS_THREADS */
diff --git a/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.h b/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.h
deleted file mode 100644
index 915882f132e..00000000000
--- a/performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.h
+++ /dev/null
@@ -1,113 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-/* Defines the base class used to dynamically link in the benchmark tests */
-
-#ifndef ACE_BENCHMARK_BASE_H
-# define ACE_BENCHMARK_BASE_H
-
-# include "ace/Service_Config.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-# include "ace/Service_Repository.h"
-# include "ace/Synch.h"
-# include "ace/Service_Types.h"
-# include "export_mac.h"
-
-# if defined (ACE_HAS_THREADS)
-
-# if defined (ACE_HAS_PTHREADS) || defined (ACE_HAS_DCETHREADS) || defined (VXWORKS)
-
-typedef ACE_Atomic_Op<ACE_Thread_Mutex, int> MT_INT;
-
-class Thr_ID
- // TITLE
- // A simple class that provides a thread-specific value in order
- // to compensate for POSIX Pthreads.
- //
- // DESCRIPTION
- // Pthreads are too lame to have a sensible scalar values for the
- // thread id (unlike Solaris threads). Therefore, we have to
- // emulate this ourselves with this class (gag).
-{
-public:
- Thr_ID (void);
- int thr_id (void);
- void thr_id (int);
-
-private:
- int thr_id_;
- static MT_INT thread_id_;
-};
-# endif /* ACE_HAS_PTHREADS || ACE_HAS_DCETHREADS || VXWORKS */
-
-class SYNCHLIB_Export Benchmark_Base : public ACE_Service_Object
-{
- // = TITLE
- // Base class for all benchmarking objects.
- //
- // = DESCRIPTION
- // This class is the base class for all benchmarking
- // classes. Its major functionalities are to privide RTTI
- // information and to define other common methods all
- // benchmarking classes should support.
-public:
- enum {
- BENCHMARK_BASE,
- METHOD,
- BASELINE,
- PERFORMANCE
- };
-
- int benchmark_type (void);
- // RTTI information of this module.
-
- int thr_id (void);
- // Returns our thread id;
-
-protected:
- Benchmark_Base (int type = BENCHMARK_BASE);
- // Default ctor.
-
- int benchmark_type_;
- // Store the RTTI info of this module.
-
-# if defined (ACE_HAS_PTHREADS) || defined (ACE_HAS_DCETHREADS) || defined (VXWORKS)
- ACE_TSS <Thr_ID> id_;
- // Keeps track of our "virtual" thread id...
-# endif /* ACE_HAS_PTHREADS || ACE_HAS_DCETHREADS || VXWORKS */
-};
-
-class SYNCHLIB_Export Benchmark_Method_Base : public Benchmark_Base
-{
- // = TITLE
- // This class identifies itself as Benmarking Method class.
- // It defines a method as of how the test is setup and measured.
-public:
- int exec (ACE_Service_Repository_Iterator *sri);
- // Run the test and advanced the service repository iterator
-
- virtual int pre_run_test (Benchmark_Base *bp) = 0;
- // Before running the real test. Subclasses implement this method
- // to dictate how the test is performed.
-
- virtual int run_test (void) = 0;
- // Run the real test. Subclasses implement this method to
- // dictate how the test is performed.
-
- virtual int post_run_test (void) = 0;
- // After running the real test. Subclasses implement this method to
- // dictate how the test is performed.
-
- virtual int valid_test_object (Benchmark_Base *) = 0;
- // Check if we got a valid test to perform.
-
-protected:
- Benchmark_Method_Base (void);
-};
-
-# endif /* ACE_HAS_THREADS */
-#endif /* ACE_BENCHMARK_BASE_H */
diff --git a/performance-tests/Synch-Benchmarks/Synch_Lib/Makefile b/performance-tests/Synch-Benchmarks/Synch_Lib/Makefile
deleted file mode 100644
index 730879ed048..00000000000
--- a/performance-tests/Synch-Benchmarks/Synch_Lib/Makefile
+++ /dev/null
@@ -1,126 +0,0 @@
-#----------------------------------------------------------------------------
-# $Id$
-#
-# Makefile for the server-side ACE network services
-#----------------------------------------------------------------------------
-
-LIB = libSynch_Lib.a
-SHLIB = libSynch_Lib.$(SOEXT)
-
-FILES = Benchmark_Base
-
-DEFS = $(addsuffix .h,$(FILES))
-LSRC = $(addsuffix .cpp,$(FILES))
-
-LIBS += $(ACELIB)
-
-BUILD = $(VLIB) $(VSHLIB)
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
-
-#----------------------------------------------------------------------------
-# Local targets
-#----------------------------------------------------------------------------
-
-ifeq ($(SUPPRESS_DASH_G),1)
-#### Build this target without -g on some platforms.
-$(VDIR)Server_Logging_Handler.o $(VSHDIR)Server_Logging_Handler.$(SOEXT):
- $(COMPILE-NO_DASH_G.cc) -o $@ $<
-endif # SUPPRESS_DASH_G
-
-#----------------------------------------------------------------------------
-# Dependencies
-#----------------------------------------------------------------------------
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-.obj/Benchmark_Base.o .obj/Benchmark_Base.so .shobj/Benchmark_Base.o .shobj/Benchmark_Base.so: Benchmark_Base.cpp Benchmark_Base.h \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.h \
- $(ACE_ROOT)/ace/config-linux-lxpthreads.h \
- $(ACE_ROOT)/ace/config-linux-common.h \
- $(ACE_ROOT)/ace/config-g++-common.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Object_Manager.h \
- $(ACE_ROOT)/ace/Object_Manager.i \
- $(ACE_ROOT)/ace/Managed_Object.h \
- $(ACE_ROOT)/ace/Managed_Object.i \
- $(ACE_ROOT)/ace/Managed_Object.cpp \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(ACE_ROOT)/ace/Service_Repository.h \
- $(ACE_ROOT)/ace/Service_Types.h \
- $(ACE_ROOT)/ace/Service_Types.i \
- $(ACE_ROOT)/ace/Service_Repository.i export_mac.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/performance-tests/Synch-Benchmarks/Synch_Lib/README b/performance-tests/Synch-Benchmarks/Synch_Lib/README
deleted file mode 100644
index f17fe39234a..00000000000
--- a/performance-tests/Synch-Benchmarks/Synch_Lib/README
+++ /dev/null
@@ -1,4 +0,0 @@
-This subdirectory contains a library that defines the interface used
-by all benchmarking modules. The library is required by all modules
-and the synch_driver. If you want to develop your own benchmarking
-module, this directory provides a starting point.
diff --git a/performance-tests/Synch-Benchmarks/Synch_Lib/Synch_Lib.dsp b/performance-tests/Synch-Benchmarks/Synch_Lib/Synch_Lib.dsp
deleted file mode 100644
index 6cdde69f338..00000000000
--- a/performance-tests/Synch-Benchmarks/Synch_Lib/Synch_Lib.dsp
+++ /dev/null
@@ -1,99 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Synch_Lib" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=Synch_Lib - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Synch_Lib.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Synch_Lib.mak" CFG="Synch_Lib - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Synch_Lib - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "Synch_Lib - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Synch_Lib - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
-# ADD LINK32 ace.lib /nologo /subsystem:windows /dll /machine:I386 /out:"..\..\..\bin\Synch_Lib.dll" /libpath:"..\..\..\ace"
-
-!ELSEIF "$(CFG)" == "Synch_Lib - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"..\..\..\bin\Synch_Libd.dll" /pdbtype:sept /libpath:"..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Synch_Lib - Win32 Release"
-# Name "Synch_Lib - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter ".cpp"
-# Begin Source File
-
-SOURCE=.\Benchmark_Base.cpp
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/performance-tests/Synch-Benchmarks/Synch_Lib/export_mac.h b/performance-tests/Synch-Benchmarks/Synch_Lib/export_mac.h
deleted file mode 100644
index 9ccc20f399d..00000000000
--- a/performance-tests/Synch-Benchmarks/Synch_Lib/export_mac.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by
-// ${ACE_ROOT}/GenExportH.BAT
-// ------------------------------
-#if !defined (SYNCHLIB_EXPORT_H)
-#define SYNCHLIB_EXPORT_H
-
-#include "ace/OS.h"
-
-#if !defined (SYNCHLIB_HAS_DLL)
-#define SYNCHLIB_HAS_DLL 1
-#endif /* !SYNCHLIB_HAS_DLL */
-
-#if defined (SYNCHLIB_HAS_DLL)
-# if (SYNCHLIB_HAS_DLL == 1)
-# if defined (SYNCHLIB_BUILD_DLL)
-# define SYNCHLIB_Export ACE_Proper_Export_Flag
-# define SYNCHLIB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# else
-# define SYNCHLIB_Export ACE_Proper_Import_Flag
-# define SYNCHLIB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# endif /* SYNCHLIB_BUILD_DLL */
-# else
-# define SYNCHLIB_Export
-# define SYNCHLIB_SINGLETON_DECLARATION(T)
-# endif /* ! SYNCHLIB_HAS_DLL == 1 */
-#else
-# define SYNCHLIB_Export
-# define SYNCHLIB_SINGLETON_DECLARATION(T)
-#endif /* SYNCHLIB_HAS_DLL */
-
-#endif /* SYNCHLIB_EXPORT_H */
-
-// End of auto generated file.