Skip to content

Commit d95680b

Browse files
committed
Log number of partitions
1 parent b71e51b commit d95680b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

examples/performance/performance-consolidated.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function logParameters(parameters) {
9595
logParameters(parameters);
9696
console.log(` Topic: ${topic}`);
9797
console.log(` Topic2: ${topic2}`);
98+
console.log(` Partitions: ${numPartitions}`);
9899
await runCreateTopics(parameters, topic, topic2, numPartitions);
99100
}
100101

examples/performance/performance-primitives-kafkajs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function runCreateTopics(parameters, topic, topic2, numPartitions) {
4343
topics: [{ topic: t, numPartitions }],
4444
}).catch(console.error);
4545
if (topicCreated) {
46-
console.log(`Created topic ${t}`);
46+
console.log(`Created topic ${t} with ${numPartitions} partitions`);
4747
continue;
4848
}
4949

@@ -55,7 +55,7 @@ async function runCreateTopics(parameters, topic, topic2, numPartitions) {
5555
{ topic: t, numPartitions },
5656
],
5757
}).catch(console.error);
58-
console.log(`Created topic ${t}`);
58+
console.log(`Created topic ${t} with ${numPartitions} partitions`);
5959
}
6060

6161
await admin.disconnect();

examples/performance/performance-primitives.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function runCreateTopics(parameters, topic, topic2, numPartitions) {
4141
topics: [{ topic: t, numPartitions }],
4242
}).catch(console.error);
4343
if (topicCreated) {
44-
console.log(`Created topic ${t}`);
44+
console.log(`Created topic ${t} with ${numPartitions} partitions`);
4545
continue;
4646
}
4747

@@ -53,7 +53,7 @@ async function runCreateTopics(parameters, topic, topic2, numPartitions) {
5353
{ topic: t, numPartitions },
5454
],
5555
}).catch(console.error);
56-
console.log(`Created topic ${t}`);
56+
console.log(`Created topic ${t} with ${numPartitions} partitions`);
5757
await new Promise(resolve => setTimeout(resolve, 1000)); /* Propagate. */
5858
}
5959

0 commit comments

Comments
 (0)