summaryrefslogtreecommitdiff
path: root/trunk/TAO/performance-tests/Cubit/TAO/IDL_Cubit/benchmark_sequence.sh
blob: a170f4158b09c52b79dd0c61b86353497cbe049c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# $Id$

# Script to run the IDL_Cubit octet sequence test with different
# sequence sizes, using TAO's UIOP pluggable protocol.
# The -ORBGIOPlite option will be used.
# Client and Server output will be placed in separate files.

# Initially written by Ossama Othman <othman@cs.wustl.edu>

set -e

for bytes in 4 8 16 32 64 128 256 512 1024 2048; do
  echo "Running IDL_Cubit sequence<octet> test with $bytes byte(s) in sequence..."
  ./server -f ior -ORBEndpoint uiop:// -ORBGIOPlite \
	> octet_seq.$bytes.uioplite.server 2>&1 &
  sleep 2
  ./client -f ior -n 1000 -t small_octet_seq -b $bytes -x -ORBGIOPlite \
	> octet_seq.$bytes.uioplite.client 2>&1
  wait
done

echo "Done."