summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-23 04:03:43 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-23 04:03:43 +0000
commita3b56bd0165db27b510bdceba7a6c3a58baa13e4 (patch)
tree687e667231771c9c086d5121e9ed5446fecfc67e
parentc17f635b9c9ba0b9551e9b126b7cc4ad72a0a1d2 (diff)
downloadATCD-a3b56bd0165db27b510bdceba7a6c3a58baa13e4.tar.gz
enable -ORBiioplite by default, and added -l support to disable
-rwxr-xr-xTAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test20
1 files changed, 12 insertions, 8 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test b/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test
index 1edb0eeb8ac..0c33414f4cb 100755
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/MT_Cubit_Test
@@ -3,12 +3,14 @@
#
# Spawns MT_Cubit server and client executables on a single host.
-usage="usage: $0 [-n <iterations>] [-t] <number of low priority threads>"
+usage="usage: $0 [-n <iterations>] [-t] [-l] <# low priority threads>"
+usage2=" [-t] uses /tmp, [-l] suppresses use of -ORBiioplite"
user=`whoami`
ior_file=/tmp/MT_Cubit-ior.${user}
iterations=1000
client_exec_prefix=time
+iiop_lite=-ORBiioplite
if [ "$HOSTTYPE" = "lynxos" ]; then
server_exec_prefix='prio 30'
@@ -22,17 +24,18 @@ fi
########
######## Interpret command arguments.
########
-while getopts ?n:t arg; do
+while getopts ?ln:t arg; do
case $arg in
+ l ) iiop_lite= ;;
n ) iterations=$OPTARG ;;
t ) tmp='/tmp/' ;;
- '?' ) echo $usage; exit 0 ;;
+ '?' ) echo $usage; echo $usage2; exit 0 ;;
esac
done
shift `expr $OPTIND - 1`
if [ $# -ne 1 ]; then
- echo $usage
+ echo $usage; echo $usage2
exit 1
fi
threads=`expr $1 + 1`
@@ -47,17 +50,18 @@ trap 'kill -1 $server_pid; /bin/rm -f $ior_file' 0 1 2 15
########
######## Start server and save its pid.
########
-$server_exec_prefix ./server -s -f $ior_file -t $threads > \
- ${tmp}server.log 2>&1 &
+$server_exec_prefix ./server -s -f $ior_file -t $threads $iioplite > \
+ ${tmp}server.log 2>&1 &
server_pid=$!
while [ ! -f $ior_file ]; do
sleep 2
done
+sleep 4
########
######## Start client.
########
-$client_exec_prefix ./client -s -f $ior_file -t $threads -n $iterations > \
- ${tmp}client-${threads}.log 2>&1
+$client_exec_prefix ./client -s -f $ior_file -t $threads -n $iterations \
+ $iiop_lite > ${tmp}client-${threads}.log 2>&1