diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-19 07:15:48 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-19 07:15:48 +0000 |
commit | 283ebc48a1d2f494e41e6647632117307cee661e (patch) | |
tree | 20c8623456c251d67b3cace039e4d6b4874eb979 /performance-tests | |
parent | 282a8ace4b57007a80a1aa1770f87e0531076448 (diff) | |
download | ATCD-283ebc48a1d2f494e41e6647632117307cee661e.tar.gz |
*** empty log message ***
Diffstat (limited to 'performance-tests')
3 files changed, 82 insertions, 37 deletions
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp index b0a2b92162f..d87fcc3655d 100644 --- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp +++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp @@ -79,16 +79,16 @@ Performance_Test_Options::parse_args (int argc, char *argv[]) while ((c = get_opt ()) != -1) switch (c) { - case 'a': + case 'a': // Not used. (do_ack ???) this->_ack = ACE_OS::strcasecmp (get_opt.optarg, "ON") == 0; break; - case 'A': + case 'A': // Not used. (set rendezvous point.) this->pipe_addr (get_opt.optarg); break; - case 'B': + case 'B': // Create thread with THR_BOUND. this->t_flags (THR_BOUND); break; - case 'c': + case 'c': // Not used. (# of connections.) { long connections = ACE_OS::atoi (get_opt.optarg); @@ -101,79 +101,79 @@ Performance_Test_Options::parse_args (int argc, char *argv[]) break; } - case 'C': + case 'C': // Not used. (Toggle calculate checksum.) this->_checksum = ACE_OS::strcasecmp (get_opt.optarg, "ON") == 0; break; - case 'd': + case 'd': // Not used. (Enable debugging.) this->_debugging = 1; break; - case 'D': + case 'D': // Create thread with THR_DETACHED. this->t_flags (THR_DETACHED); break; - case 'e': + case 'e': // Perform eager exit (without cleaning up.) this->_eager_exit = ACE_OS::strcasecmp (get_opt.optarg, "ON") == 0; break; - case 'F': + case 'F': // Not used. this->_free_memory = ACE_OS::strcasecmp (get_opt.optarg, "ON") == 0; break; - case 'g': + case 'g': // Not used. (generate data ??) this->_generate = ACE_OS::strcasecmp (get_opt.optarg, "ON") == 0; break; - case 'H': + case 'H': // Not used. (set high water mark) this->high_water_mark (ACE_OS::atoi (get_opt.optarg)); break; - case 'i': + case 'i': // Not used. (# of iterations) this->iterations (ACE_OS::atoi (get_opt.optarg)); break; - case 'L': + case 'L': // Not used. (set low water mark) this->low_water_mark (ACE_OS::atoi (get_opt.optarg)); break; - case 'l': + case 'l': // Not used. (set initial queue length) this->initial_queue_length (ACE_OS::atoi (get_opt.optarg)); break; - case 'M': + case 'M': // Set message size in pipe_[proc|thr]_test. this->msg_size (ACE_OS::atoi (get_opt.optarg)); break; - case 'm': + case 'm': // Not used. (set mapped file name) this->mapped_file (get_opt.optarg); break; - case 'N': + case 'N': // Create thread with flag THR_NEW_LWP. this->t_flags (THR_NEW_LWP); break; - case 'n': + case 'n': // Set # of lwp's this->n_lwps (ACE_OS::atoi (get_opt.optarg)); break; - case 'p': + case 'p': // Toggle whether summary is printed. this->_print_summary = ACE_OS::strcasecmp (get_opt.optarg, "ON") == 0; break; - case 'P': + case 'P': // Not used. this->consecutive_ports (ACE_OS::atoi (get_opt.optarg)); break; - case 'S': + case 'S': // Not used (set service_entry ???) this->service_entry (get_opt.optarg); break; - case 's': + case 's': // Set testing duration. this->sleep_time (ACE_OS::atoi (get_opt.optarg)); break; - case 'T': + case 'T': // Enable/disable tracing. if (ACE_OS::strcasecmp (get_opt.optarg, "ON") == 0) ACE_Trace::start_tracing (); else if (ACE_OS::strcasecmp (get_opt.optarg, "OFF") == 0) ACE_Trace::stop_tracing (); break; - case 't': + case 't': // Set # of threads contending the lock. this->thr_count (ACE_OS::atoi (get_opt.optarg)); break; - case 'u': + case 'u': // Not used. (use udp.) this->_udp = 1; break; - case 'v': + case 'v': // Not used. (set display verbosely) this->_verbosity = 1; break; - case 'X': + case 'X': // Not used. (Use xdr conversion.) this->_xdr = ACE_OS::strcasecmp (get_opt.optarg, "ON") == 0; break; - case 'Z': + case 'Z': // Not used. (Do zero copy.) this->_zero_copy = ACE_OS::strcasecmp (get_opt.optarg, "ON") == 0; break; default: diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/README b/performance-tests/Synch-Benchmarks/Perf_Test/README index af425adcffe..28f1f160e8a 100644 --- a/performance-tests/Synch-Benchmarks/Perf_Test/README +++ b/performance-tests/Synch-Benchmarks/Perf_Test/README @@ -30,3 +30,47 @@ Solaris, you should always make sure that you have more than 1 LWP (by using either the -B or the -n options) since otherwise the program may get into an infinite loop due to the semantics of SunOS unbound threads... (This may no longer be the case.) + + +Available Options in Performance_Test module: +============================================= + +Thread Creation: +---------------- + -B: Create thread with THR_BOUND + -D: Create thread with THR_DETACHED + -N: Create thread with flag THR_NEW_LWP + -n: Set # of lwp's (default is 0) + -t: Set # of threads contending the lock (default is 4) + +Run Test: +--------- + -s: Set testing duration (in seconds, default is 100) + -T: Enable/disable tracing. + +Misc: +----- + -p: Toggle whether summary is printed + -e: Perform eager exit (without cleaning up) + -M: Set message size in pipe_[proc|thr]_test + +Reserved Flags: +--------------- + -a: Not used. (do_ack ???) + -A: Not used. (set rendezvous point) + -c: Not used. (# of connections) + -C: Not used. (Toggle calculate checksum) + -d: Not used. (Enable debugging) + -F: Not used. (Free memory) + -g: Not used. (generate data ??) + -H: Not used. (set high water mark) + -i: Not used. (# of iterations) + -L: Not used. (set low water mark) + -l: Not used. (set initial queue length) + -m: Not used. (set mapped file name) + -P: Not used. (set consecutive ports) + -S: Not used. (set service_entry ???) + -u: Not used. (use udp) + -v: Not used. (set display verbosely) + -X: Not used. (Use xdr conversion) + -Z: Not used. (Do zero copy) diff --git a/performance-tests/Synch-Benchmarks/svcconf/svc.conf b/performance-tests/Synch-Benchmarks/svcconf/svc.conf index 67b355c1087..4d762bb4092 100644 --- a/performance-tests/Synch-Benchmarks/svcconf/svc.conf +++ b/performance-tests/Synch-Benchmarks/svcconf/svc.conf @@ -1,16 +1,17 @@ # Dynamically configure all the tests -#dynamic Performance_Test Service_Object * Perf_Test/Perf_Test:_make_Performance_Test() "-s 3" +dynamic Performance_Test Service_Object * Perf_Test/Perf_Test:_make_Performance_Test() "-s 3 -t 4" #dynamic Guard_Test Service_Object * Perf_Test/Perf_Test:_make_Guard_Test() "-g" #dynamic SYSVSema_Test Service_Object * Perf_Test/Perf_Test:_make_SYSVSema_Test() -#dynamic Mutex_Test Service_Object * Perf_Test/Perf_Test:_make_Mutex_Test() -#dynamic Adaptive_Mutex_Test Service_Object * Perf_Test/Perf_Test:_make_Adaptive_Mutex_Test() -#dynamic Recursive_Lock_Test Service_Object * Perf_Test/Perf_Test:_make_Recursive_Lock_Test() -#dynamic Adaptive_Recursive_Lock_Test Service_Object * Perf_Test/Perf_Test:_make_Adaptive_Recursive_Lock_Test() -#dynamic Semaphore_Test Service_Object * Perf_Test/Perf_Test:_make_Sema_Test() -#dynamic Adaptive_Semaphore_Test Service_Object * Perf_Test/Perf_Test:_make_Adaptive_Sema_Test() -#dynamic RWRD_Mutex_Test Service_Object * Perf_Test/Perf_Test:_make_RWRD_Test() -#dynamic RWWR_Mutex_Test Service_Object * Perf_Test/Perf_Test:_make_RWWR_Test() +dynamic Mutex_Test Service_Object * Perf_Test/Perf_Test:_make_Mutex_Test() +dynamic Adaptive_Mutex_Test Service_Object * Perf_Test/Perf_Test:_make_Adaptive_Mutex_Test() +dynamic Recursive_Lock_Test Service_Object * Perf_Test/Perf_Test:_make_Recursive_Lock_Test() +dynamic Adaptive_Recursive_Lock_Test Service_Object * Perf_Test/Perf_Test:_make_Adaptive_Recursive_Lock_Test() +dynamic Semaphore_Test Service_Object * Perf_Test/Perf_Test:_make_Sema_Test() +dynamic Adaptive_Semaphore_Test Service_Object * Perf_Test/Perf_Test:_make_Adaptive_Sema_Test() +dynamic RWRD_Mutex_Test Service_Object * Perf_Test/Perf_Test:_make_RWRD_Test() +dynamic RWWR_Mutex_Test Service_Object * Perf_Test/Perf_Test:_make_RWWR_Test() +dynamic Token_Test Service_Object * Perf_Test/Perf_Test:_make_Token_Test() #dynamic SYSVSema_Test Service_Object * Perf_Test/Perf_Test:_make_SYSVSema_Test() #dynamic Context_Test Service_Object * Perf_Test/Perf_Test:_make_Context_Test() # dynamic Memory_Test Service_Object * Perf_Test/Perf_Test:_make_Memory_Test() |