benchmark.sh

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· Shell 代码 · 共 36 行

SH
36
字号
#!/bin/sh

# benchmark.sh,v 1.1 1999/07/28 16:54:27 othman Exp

# Script to run all of the IDL_Cubit type tests for IIOP, UIOP and IIOP/UIOP
# with the -ORBGIOPlite option.
# Client and Server output will be placed in separate files.

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

set -e

for protocol in iiop uiop; do 
   for test in void octet short long struct union \
               small_octet_seq small_long_seq small_struct_seq \
               large_octet_seq large_long_seq large_struct_seq \
               mixin rti_data one_way; do 
	echo "Running IDL_Cubit $test test for $protocol..."
	./server -f ior -ORBEndpoint $protocol:// \
		> $test.$protocol.server 2>&1 &
	sleep 2
	./client -f ior -n 1000 -t $test -x \
		> $test.$protocol.client 2>&1
	wait
	echo "Running IDL_Cubit $test for $protocol with -ORBGIOPlite..."
	./server -f ior -ORBEndpoint $protocol:// -ORBGIOPlite \
		> $test.$protocol.lite.server 2>&1 &
	sleep 2
	./client -f ior -n 1000 -t $test -x -ORBGIOPlite \
		> $test.$protocol.lite.client 2>&1
	wait
   done
done
echo "Done."

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?