Skip to content

Commit f29242f

Browse files
author
Simon MacMullen
committed
One more scenario, tweak some params.
1 parent 5276f4f commit f29242f

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

test/src/com/rabbitmq/examples/perf/PerformanceMain.java

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private static void runStaticBrokerTests() throws Exception {
5454
Broker broker = Broker.HIPE_COARSE;
5555
broker.start();
5656
runTests(new Scenario[]{no_consume(), no_ack(), no_ack_mandatory(), no_ack_immediate(), ack(),
57-
ack_confirm(), ack_confirm_persist(), fill_drain_queue("small", 500000),
57+
ack_confirm(), ack_confirm_persist(), ack_persist(), fill_drain_queue("small", 500000),
5858
fill_drain_queue("large", 1000000), consumers(),
5959
message_sizes(), message_size_vs_producers(), rate_vs_latency()});
6060
broker.stop();
@@ -101,18 +101,25 @@ private static Scenario ack() throws IOException, InterruptedException {
101101
private static Scenario ack_confirm() throws IOException, InterruptedException {
102102
MulticastParams params = params();
103103
params.setAutoAck(false);
104-
params.setConfirm(1000);
104+
params.setConfirm(10000);
105105
return new SimpleScenario("ack-confirm", factory, params);
106106
}
107107

108108
private static Scenario ack_confirm_persist() throws IOException, InterruptedException {
109109
MulticastParams params = params();
110110
params.setAutoAck(false);
111-
params.setConfirm(1000);
111+
params.setConfirm(10000);
112112
params.setFlags(PERSISTENT);
113113
return new SimpleScenario("ack-confirm-persist", factory, params);
114114
}
115115

116+
private static Scenario ack_persist() throws IOException, InterruptedException {
117+
MulticastParams params = params();
118+
params.setAutoAck(false);
119+
params.setFlags(PERSISTENT);
120+
return new SimpleScenario("ack-persist", factory, params);
121+
}
122+
116123
private static Scenario fill_drain_queue(String name, int count) throws IOException, InterruptedException {
117124
MulticastParams fill = fill_drain_params();
118125
MulticastParams drain = fill_drain_params();
@@ -136,16 +143,16 @@ private static MulticastParams fill_drain_params() {
136143
private static Scenario message_sizes() throws IOException, InterruptedException {
137144
MulticastParams params = params();
138145
return new VaryingScenario("message-sizes", factory, params,
139-
var("minMsgSize", 0, 100, 200, 300, 400, 500, 6000, 700, 800, 900, 1000,
140-
1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000, 5000));
146+
var("minMsgSize", 0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000,
147+
1200, 1400, 1600, 1800, 2000, 3000, 4000, 5000));
141148
}
142149

143150
private static Scenario consumers() throws IOException, InterruptedException {
144151
MulticastParams params = params();
145152
params.setAutoAck(false);
146153
return new VaryingScenario("consumers", factory, params,
147-
var("consumerCount", 1, 2, 5, 10, 50, 100),
148-
var("prefetchCount", 1, 10, 100, 1000, 10000));
154+
var("consumerCount", 1, 2, 5, 10, 50, 100, 1000),
155+
var("prefetchCount", 1, 2, 5, 10, 20, 50, 10000));
149156
}
150157

151158
private static Scenario message_size_vs_producers() throws IOException, InterruptedException {

0 commit comments

Comments
 (0)