Skip to content

Commit 5f96717

Browse files
some artifacts
1 parent 8ee3c28 commit 5f96717

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Benchmarks/Benchmarks/SwiftKafkaConsumerBenchmarks/KafkaConsumerBenchmark.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import ServiceLifecycle
2323

2424
let benchmarks = {
2525
var uniqueTestTopic: String!
26-
let messageCount: UInt = 1000
26+
let messageCount: UInt = 10_000
2727

2828
Benchmark.defaultConfiguration = .init(
2929
metrics: [.wallClock, .cpuTotal, .allocatedResidentMemory, .contextSwitches, .throughput] + .arc,
@@ -211,8 +211,6 @@ let benchmarks = {
211211
rd_kafka_subscribe(kafkaHandle, subscriptionList)
212212
rd_kafka_poll(kafkaHandle, 0)
213213

214-
let queue = DispatchQueue(label: "com.librdkafa.consumer_poll")
215-
216214
var ctr: UInt64 = 0
217215
var tmpCtr: UInt64 = 0
218216

@@ -297,7 +295,7 @@ let benchmarks = {
297295
guard record.pointee.err != RD_KAFKA_RESP_ERR__PARTITION_EOF else {
298296
continue
299297
}
300-
let result = rd_kafka_commit_message(kafkaHandle, record, 0 /* sync */ )
298+
let result = rd_kafka_commit_message(kafkaHandle, record, 0)
301299
precondition(result == RD_KAFKA_RESP_ERR_NO_ERROR)
302300

303301
ctr += 1

0 commit comments

Comments
 (0)