forked from chirino/stomp-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_scenarios.xml
268 lines (268 loc) · 12.1 KB
/
default_scenarios.xml
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<scenarios>
<broker_name>Test Broker 1234</broker_name>
<description>This report provides a comparative benchmark of messaging servers that implement the Stomp 1.0 specification. It covers a wide variety of common usage scenarios. Each scenario is warmed up for 3 seconds before the performance samples are taken.</description>
<platform_name>Test Platform 4321</platform_name>
<platform_desc>
The STOMP server was run on a:
<ul>
<li>CPU: 3.4 GHz Intel 2600K</li>
<li>Memory: 8 GB 2000 MHz DDR3</li>
<li>OS: Ubuntu 10.10</li>
<li>Disk: SATA 7200 RPM</li>
<li>Java: OpenJDK 64-Bit 1.6.0_20</li>
</ul>
The STOMP clients were run on:
<ul>
<li>Mac Pro Model: MacPro3,1</li>
<li>CPU: 2 x 3 GHz Quad-Core Intel Xeon</li>
<li>Memory: 8 GB 800 MHz DDR2</li>
<li>OS: Mac OS X 10.6.6</li>
<li>Disk: SATA 7200 RPM</li>
<li>Java: 64-Bit 1.6.0_22</li>
</ul>
The two machines were connected via 1 GigE.
</platform_desc>
<common>
<sample_interval>1000</sample_interval>
<blocking_io>false</blocking_io>
<warm_up_count>3</warm_up_count>
<drain>true</drain>
</common>
<group name="Persistent Queue Load/Unload - Non Persistent Queue Load">
<description>
Persistent Queue Load/Unload - Non Persistent Queue Load
</description>
<common>
<sample_count>30</sample_count>
<destination_type>queue</destination_type>
<destination_count>1</destination_count>
<destination_name>load_me_up</destination_name>
</common>
<scenario name="non_persistent_queue_load" label="Non Persistent Queue Load">
<clients name="20b_1a_1queue_0">
<producers>1</producers>
<consumers>0</consumers>
<message_size>20</message_size>
<persistent>false</persistent>
<sync_send>false</sync_send>
</clients>
</scenario>
<scenario name="persistent_queue_load" label="Persistent Queue Load">
<common>
<drain>false</drain>
</common>
<clients name="20b_1p_1queue_0">
<producers>1</producers>
<consumers>0</consumers>
<message_size>20</message_size>
<persistent>true</persistent>
<sync_send>true</sync_send>
</clients>
</scenario>
<scenario name="persistent_queue_unload" label="Persistent Queue Unload">
<clients name="20b_0_1queue_1">
<producers>0</producers>
<consumers>1</consumers>
</clients>
</scenario>
</group>
<group name="Fast and Slow Consumers">
<loop>
<var name="destination_type" label="Destination type">
<value label="Queue">queue</value>
<value label="Topic">topic</value>
</var>
</loop>
<description>
Scenario with fast and slow consumers
</description>
<scenario name="fast_slow_consumers_${destination_type}" label="Fast and Slow consumers on a ${destination_type}">
<common>
<sample_count>15</sample_count>
<destination_type>${destination_type}</destination_type>
<destination_count>1</destination_count>
</common>
<clients name="20b_1a_1${destination_type}_1fast">
<producers>1</producers>
<consumers>1</consumers>
<message_size>20</message_size>
<persistent>false</persistent>
<sync_send>false</sync_send>
</clients>
<clients name="20b_1a_1${destination_type}_1slow">
<producers>0</producers>
<consumers>1</consumers>
<consumer_sleep>100</consumer_sleep>
</clients>
</scenario>
</group>
<group name="Selecting Consumers on 1 destination">
<loop>
<var name="destination_type" label="Destination type">
<value label="Queue">queue</value>
<value label="Topic">topic</value>
</var>
</loop>
<description>
Scenario with consumers selecting on one destination
</description>
<scenario name="selecting_consumers_${destination_type}" label="Selecting Consumers on a ${destination_type}">
<common>
<sample_count>15</sample_count>
<destination_type>${destination_type}</destination_type>
<destination_count>1</destination_count>
</common>
<clients name="20b_color_2a_1${destination_type}_0">
<producers>2</producers>
<consumers>0</consumers>
<message_size>20</message_size>
<persistent>false</persistent>
<sync_send>false</sync_send>
<headers>
<client_type>
<header>color:red</header>
</client_type>
<client_type>
<header>color:blue</header>
</client_type>
</headers>
</clients>
<clients name="20b_0_1${destination_type}_1_red">
<producers>0</producers>
<consumers>1</consumers>
<selector>color='red'</selector>
</clients>
<clients name="20b_0_1${destination_type}_1_blue">
<producers>0</producers>
<consumers>1</consumers>
<selector>color='blue'</selector>
</clients>
</scenario>
</group>
<group name="Max Producer Throughput">
<loop>
<var name="size" label="Message Size">
<value label="20b">20</value>
<value label="1k">1024</value>
<value label="256k">262144</value>
</var>
</loop>
<description>
Scenario to find the maximum producer throughput, sendind messages to a topic without consumers.
</description>
<scenario name="maximum_throughput_at_${mlabel(size)}" label="Producer sending messages of ${mlabel(size)}">
<clients name="${mlabel(size)}_1a_1topic_0">
<sample_count>15</sample_count>
<producers>1</producers>
<consumers>0</consumers>
<message_size>${size}</message_size>
<persistent>false</persistent>
<sync_send>false</sync_send>
<destination_type>topic</destination_type>
<destination_count>1</destination_count>
</clients>
</scenario>
</group>
<group name="Partitioned Load Scenarios">
<loop>
<var name="size" label="Message Size">
<value label="20b">20</value>
<value label="1k">1024</value>
<value label="256k">262144</value>
</var>
<var name="destination_type" label="Destination type">
<value label="Queue">queue</value>
<value label="Topic">topic</value>
</var>
<var name="persistent" label="Persistent">
<value label="Non Persistent">false</value>
<value label="Persistent">true</value>
</var>
<var name="load" label="Number of producers, consumers and destinations">
<value label="1x1x1">1</value>
<value label="5x5x5">5</value>
<value label="10x10x10">10</value>
</var>
</loop>
<description>
These scenarios sample performance as partitioned load is applied. Each destination only has 1 and only 1 producer and consumer attached.
</description>
<scenario name="partitioned_load_${mlabel(size)}_${destination_type}_${persistent}_${load}" label="Partitioned Load Scenario - Size: ${mlabel(size)} Destination: ${destination_type} Persistent: ${persistent} Load: ${load}">
<clients name="${mlabel(size)}_${load}${plabel(persistent)}${slabel(persistent)}_${load}${destination_type}_${load}">
<sample_count>15</sample_count>
<producers>${load}</producers>
<consumers>${load}</consumers>
<message_size>${size}</message_size>
<persistent>${persistent}</persistent>
<sync_send>${persistent}</sync_send>
<destination_type>${destination_type}</destination_type>
<destination_count>${load}</destination_count>
</clients>
</scenario>
</group>
<group name="Fan In/Out Load Scenarios">
<loop>
<var name="destination_type" label="Destination type">
<value label="Queue">queue</value>
<value label="Topic">topic</value>
</var>
<var name="persistent" label="Persistent">
<value label="Non Persistent">false</value>
<value label="Persistent">true</value>
</var>
<var name="producers" label="Number of producers">
<value>1</value>
<value>5</value>
<value>10</value>
</var>
<var name="consumers" label="Number of consumers">
<value>1</value>
<value>5</value>
<value>10</value>
</var>
</loop>
<description>
These scenarios multiple consumers and producers communicate via one shared destination. All messages sent have a 20 byte payload.
</description>
<scenario name="fan_in_out_${destination_type}_${persistent}_${producers}_${consumers}" label="Fan In/Out Load Scenario - Destination: ${destination_type} Persistent: ${persistent} Producers: ${producers} Consumers: ${consumers}">
<clients name="20b_${producers}${plabel(persistent)}${slabel(persistent)}_1${destination_type}_${consumers}">
<sample_count>15</sample_count>
<producers>${consumers}</producers>
<consumers>${producers}</consumers>
<message_size>20</message_size>
<persistent>${persistent}</persistent>
<sync_send>${persistent}</sync_send>
<destination_type>${destination_type}</destination_type>
<destination_count>1</destination_count>
</clients>
</scenario>
</group>
<group name="Durable Subscriptions on a Topic">
<loop>
<var name="persistent" label="Persistent">
<value label="Non Persistent">false</value>
<value label="Persistent">true</value>
</var>
<var name="consumers" label="Number of consumers">
<value>5</value>
<value>20</value>
</var>
</loop>
<description>
These scenarios test durable subscriptions on a topic. All messages sent have a 1kb payload.
</description>
<scenario name="durable_subscritions_on_topic_${persistent}_${consumers}" label="Durable Subscriptions on a Topic - Persistent: ${persistent} Consumers: ${consumers}">
<clients name="1k_1${plabel(persistent)}${slabel(persistent)}_1topic_${consumers}">
<sample_count>15</sample_count>
<producers>1</producers>
<consumers>${consumers}</consumers>
<message_size>1024</message_size>
<persistent>${persistent}</persistent>
<sync_send>${persistent}</sync_send>
<destination_type>topic</destination_type>
<destination_count>1</destination_count>
<durable>true</durable>
</clients>
</scenario>
</group>
</scenarios>