summaryrefslogtreecommitdiff
path: root/perf/TAOTests.py
blob: 1bf2ab0b9b9e9b115c9392e9701201a0ebe852eb (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# **********************************************************************
#
# Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************

#
# The test cases for TAO 
#

taoTPConf = " -ORBSvcConf svc.threadPool.conf"
taoTCConf = " -ORBSvcConf svc.threadPerConnection.conf"
taoReactiveConf = " -ORBSvcConf svc.reactive.conf"
taoBlockingConf = " -ORBSvcConf svc.blocking.conf"

productName = "TAO"

# Form
# (productName, (group name, directory, (cases...)))
#
# case form (simple descriptor, unknown, client configuration, server configuration)

testDefinitions = [
	(productName, "latency twoway", "", [
		("1tp", taoReactiveConf + " latency twoway", taoTPConf + " threadPool 1", [], ["1tp"]),
		("4tp", taoReactiveConf + " latency twoway", taoTPConf + " threadPool 4", [], ["4tp"]),
		("tpc", taoReactiveConf + " latency twoway", taoTCConf, [], ["tpc"]),
		("tpc blocking", taoBlockingConf + " latency twoway", taoTCConf, [], ["tpc", "tpcb"]),
		]
	    ),
	(productName, "latency twoway with 2k payload", "", [
		("1tp", taoReactiveConf + " latency twoway", taoTPConf + " threadPool 1", [("payload", "2000")], ["1tp"]),
		("4tp", taoReactiveConf + " latency twoway", taoTPConf + " threadPool 4", [("payload", "2000")], ["4tp"]),
		("tpc", taoReactiveConf + " latency twoway", taoTCConf,  [("payload", "2000")], ["tpc"]),
		("tpc blocking", taoBlockingConf + " latency twoway", taoTCConf,  [("payload", "2000")], ["tpc", "tpcb"]),
		]
	    ),
	(productName, "latency twoway with 10k payload", "", [
		("1tp", taoReactiveConf + " latency twoway", taoTPConf + " threadPool 1", [("payload", "10000")], ["1tp"]),
		("4tp", taoReactiveConf + " latency twoway", taoTPConf + " threadPool 4",  [("payload", "10000")], ["4tp"]),
		("tpc", taoReactiveConf + " latency twoway", taoTCConf,  [("payload", "10000")], ["tpc"]),
		("tpc blocking", taoBlockingConf + " latency twoway", taoTCConf,  [("payload", "10000")], ["tpc", "tpcb"]),
		]
	    ),
	(productName, "latency oneway", "", [
		("1tp", taoReactiveConf + " latency oneway", taoTPConf + " threadPool 1", [], ["1tp"]),
		("4tp", taoReactiveConf + " latency oneway", taoTPConf + " threadPool 4", [], ["4tp"]),
		("tpc", taoReactiveConf + " latency oneway", taoTCConf, [], ["tpc"]),
		("tpc blocking", taoBlockingConf + " latency oneway", taoTCConf, [], ["tpc", "tpcb"]),
		]
	    ),
	(productName, "latency oneway batch", "", [
		("1tp (no batching avail)", taoReactiveConf + " latency oneway", taoTPConf + " threadPool 1", [], ["1tp"]),
		("4tp (no batching avail)", taoReactiveConf + " latency oneway", taoTPConf + " threadPool 4", [], ["4tp"]),
		("tpc (no batching avail)", taoReactiveConf + " latency oneway", taoTCConf, [], ["tpc"]),
		("tpc blocking (no batching avail)", taoBlockingConf + " latency oneway", taoTCConf, [], ["tpc", "tpcb"]),
		]
	    ),
	(productName, "latency oneway with 2k payload", "", [
		("1tp", taoReactiveConf + " latency oneway", taoTPConf + " threadPool 1", [("payload", "2000")], ["1tp"]),
		("4tp", taoReactiveConf + " latency oneway", taoTPConf + " threadPool 4",  [("payload", "2000")], ["4tp"]),
		("tpc", taoReactiveConf + " latency oneway", taoTCConf,  [("payload", "2000")], ["tpc"]),
		("tpc blocking", taoBlockingConf + " latency oneway", taoTCConf,  [("payload", "2000")], ["tpc", "tpcb"]),
		]
	    ),
	(productName, "latency oneway with 10k payload", "", [
		("1tp", taoReactiveConf + " latency oneway", taoTPConf + " threadPool 1", [("payload", "10000")], ["1tp"]),
		("4tp", taoReactiveConf + " latency oneway", taoTPConf + " threadPool 4",  [("payload", "10000")], ["4tp"]),
		("tpc", taoReactiveConf + " latency oneway", taoTCConf,  [("payload", "10000")], ["tpc"]),
		("tpc blocking", taoBlockingConf + " latency oneway", taoTCConf,  [("payload", "10000")], ["tpcb", "tpc"]),
		]
	    ),
	(productName, "latency twoway AMI", "", [
		("1tp", taoReactiveConf + " latency twoway ami", taoTPConf + " threadPool 1", [], ["1tp"]),
		("4tp", taoReactiveConf + " latency twoway ami", taoTPConf + " threadPool 4", [], ["4tp"]),
		("tpc", taoReactiveConf + " latency twoway ami", taoTCConf, [], ["tpc"]),
		#("tpc blocking", taoBlockingConf + " latency twoway ami", taoTCConf, [], ["tpc", "tpcb"]),
		]
	    ),
	(productName, "latency twoway AMI with 2k payload", "", [
		("1tp", taoReactiveConf + " latency twoway ami", taoTPConf + " threadPool 1", [("payload", "2000")], ["1tp"]),
		("4tp", taoReactiveConf + " latency twoway ami", taoTPConf + " threadPool 4", [("payload", "2000")], ["4tp"]),
		("tpc", taoReactiveConf + " latency twoway ami", taoTCConf, [("payload", "2000")], ["tpcb", "tpc"]),
		]
	    ),
	(productName, "latency twoway AMI with 10k payload", "", [
		("1tp", taoReactiveConf + " latency twoway ami", taoTPConf + " threadPool 1", [("payload", "10000")], ["1tp"]),
		("4tp", taoReactiveConf + " latency twoway ami", taoTPConf + " threadPool 4", [("payload", "10000")], ["4tp"]),
		("tpc", taoReactiveConf + " latency twoway ami", taoTCConf, [("payload", "10000")], ["tpc"]),
		]
	    ),
	(productName, "throughput byte", "", [
		("1tp", taoReactiveConf + " throughput byte", taoTPConf + " threadPool 1", [], ["1tp"]),
		("1tp no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput byte",
		    taoTPConf + " -ORBUseLocalMemoryPool 0 threadPool 1", [], ["1tp"]),
		("4tp", taoReactiveConf + " throughput byte", taoTPConf + " threadPool 4", [], ["4tp"]),
		("4tp no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput byte", 
		    taoTPConf + " -ORBUseLocalMemoryPool 0 threadPool 4", [], ["4tp"]),
		("tpc", taoReactiveConf + " throughput byte", taoTCConf, [], ["tpc"]),
		("tpc blocking no memory pool", taoBlockingConf + " -ORBUseLocalMemoryPool 0 throughput byte", 
		    taoTCConf + " -ORBUseLocalMemoryPool 0", [], ["tpc", "tpcb"]),
		]
	    ),
	(productName, "throughput string sequence", "", [
		("1tp", taoReactiveConf + " throughput string", taoTPConf + " threadPool 1", [], ["1tp"]),
		("1tp no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput string", 
		    taoTPConf + " -ORBUseLocalMemoryPool 0 threadPool 1", [], ["1tp"]),
		("4tp", taoReactiveConf + " throughput string", taoTPConf + " threadPool 4", [], ["4tp"]),
		("4tp no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput string", 
		    taoTPConf + " -ORBUseLocalMemoryPool 0 threadPool 4", [], ["4tp"]),
		("tpc", taoReactiveConf + " throughput string", taoTCConf, [], ["tpc"]),
		("tpc no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput string", 
		    taoTCConf + " -ORBUseLocalMemoryPool 0", [], ["tpc"]),
		("tpc blocking", taoBlockingConf + " throughput string", taoTCConf, [], ["tpcb", "tpc"]),
		("tpc blocking no memory pool", taoBlockingConf + " -ORBUseLocalMemoryPool 0 throughput string", 
		    taoTCConf + " -ORBUseLocalMemoryPool 0", [], ["tpcb", "tpc"]),
		]
	    ),
	(productName, "throughput long string sequence", "", [
		("1tp", taoReactiveConf + " throughput longString", taoTPConf + " threadPool 1", [], ["1tp"]),
		("1tp no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput longString", 
		    taoTPConf + " -ORBUseLocalMemoryPool 0 threadPool 1", [], ["1tp"]),
		("4tp", taoReactiveConf + " throughput longString", taoTPConf + " threadPool 4", [], ["4tp"]),
		("4tp no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput longString", 
		    taoTPConf + " -ORBUseLocalMemoryPool 0 threadPool 4", [], ["4tp"]),
		("tpc", taoReactiveConf + " throughput longString", taoTCConf, [], ["tpc"]),
		("tpc no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput longString", 
		    taoTCConf + " -ORBUseLocalMemoryPool 0", [], ["tpc"]),
		("tpc blocking", taoBlockingConf + " throughput longString", taoTCConf, [], ["tpc", "tpcb"]),
		("tpc blocking no memory pool", taoBlockingConf + " -ORBUseLocalMemoryPool 0 throughput longString", 
		    taoTCConf + " -ORBUseLocalMemoryPool 0", [], ["tpc", "tpcb"]),
		]
	    ),
	(productName, "throughput struct sequence", "", [
		("1tp", taoReactiveConf + " throughput struct", taoTPConf + " threadPool 1", [], ["1tp"]),
		("1tp no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput struct", 
		    taoTPConf + " -ORBUseLocalMemoryPool 0 threadPool 1", [], ["1tp"]),
		("4tp", taoReactiveConf + " throughput struct", taoTPConf + " threadPool 4", [], ["4tp"]),
		("4tp no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput struct", 
		    taoTPConf + " -ORBUseLocalMemoryPool 0 threadPool 4", [], ["4tp"]),
		("tpc", taoReactiveConf + " throughput struct", taoTCConf, [], ["tpc"]),
		("tpc no memory pool", taoReactiveConf + " -ORBUseLocalMemoryPool 0 throughput struct", 
		    taoTCConf + " -ORBUseLocalMemoryPool 0", [], ["tpc"]),
		("tpc blocking", taoBlockingConf + " throughput struct", taoTCConf, [], ["tpc", "tpcb"]),
		("tpc blocking no memory pool", taoBlockingConf + " -ORBUseLocalMemoryPool 0 throughput struct", taoTCConf + " -ORBUseLocalMemoryPool 0", [], ["tpc", "tpcb"]),
		]
	    ),
	]

def getDefinitions():
    return testDefinitions