Skip to content

Commit 55a58b2

Browse files
committed
Run consume loop 1000 times each
Changes the benchmark to iterate over the consume loop a total of 1000 times. We now produce 1000*1000 (1e6) messages into the topic, and on every benchmark iteration consume 1000 messages each. I had to comment the `librdkafka_with_offset_commit_messages_*` benchmark. For some reason, the benchmark suite keeps re-running it, and I have seen occasional failures when attempting to commit offsets. It's unclear to me why that happens right now, but decided it's not worth the investigation at the moment.
1 parent cf7bfc4 commit 55a58b2

File tree

17 files changed

+247
-251
lines changed

17 files changed

+247
-251
lines changed

Benchmarks/Benchmarks/SwiftKafkaConsumerBenchmarks/KafkaConsumerBenchmark.swift

Lines changed: 169 additions & 140 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"allocatedResidentMemory" : 77266944,
3-
"cpuTotal" : 200000000,
4-
"objectAllocCount" : 5549,
5-
"releaseCount" : 15168,
6-
"retainCount" : 7108,
7-
"retainReleaseDelta" : 2511,
2+
"allocatedResidentMemory" : 562561023,
3+
"cpuTotal" : 210108415,
4+
"objectAllocCount" : 5971,
5+
"releaseCount" : 17775,
6+
"retainCount" : 9638,
7+
"retainReleaseDelta" : 2175,
88
"throughput" : 2,
9-
"wallClock" : 695307500
9+
"wallClock" : 638582783
1010
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
{
2-
2+
"allocatedResidentMemory" : 554172415,
3+
"cpuTotal" : 170000000,
4+
"objectAllocCount" : 6991,
5+
"releaseCount" : 19823,
6+
"retainCount" : 10655,
7+
"retainReleaseDelta" : 2185,
8+
"throughput" : 2,
9+
"wallClock" : 629669887
310
}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"allocatedResidentMemory" : 47382528,
3-
"cpuTotal" : 10000000,
2+
"allocatedResidentMemory" : 190971903,
3+
"cpuTotal" : 460000000,
44
"objectAllocCount" : 16,
55
"releaseCount" : 48,
66
"retainCount" : 2,
77
"retainReleaseDelta" : 30,
8-
"throughput" : 2,
9-
"wallClock" : 640572501
8+
"throughput" : 1,
9+
"wallClock" : 1870163542
1010
}

Benchmarks/Thresholds/5.10/SwiftKafkaConsumerBenchmarks.librdkafka_with_offset_commit_messages_1000.p90.json

Lines changed: 0 additions & 10 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"allocatedResidentMemory" : 88211455,
3-
"cpuTotal" : 40009727,
4-
"objectAllocCount" : 3471,
5-
"releaseCount" : 9175,
6-
"retainCount" : 4435,
7-
"retainReleaseDelta" : 1267,
8-
"throughput" : 9,
9-
"wallClock" : 130154495
2+
"allocatedResidentMemory" : 574619647,
3+
"cpuTotal" : 240000000,
4+
"objectAllocCount" : 5907,
5+
"releaseCount" : 16639,
6+
"retainCount" : 8591,
7+
"retainReleaseDelta" : 2135,
8+
"throughput" : 2,
9+
"wallClock" : 647495679
1010
}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"allocatedResidentMemory" : 73924608,
3-
"cpuTotal" : 200000000,
4-
"objectAllocCount" : 6039,
5-
"releaseCount" : 14939,
6-
"retainCount" : 6695,
7-
"retainReleaseDelta" : 2205,
2+
"allocatedResidentMemory" : 551026687,
3+
"cpuTotal" : 180092927,
4+
"objectAllocCount" : 7011,
5+
"releaseCount" : 18865,
6+
"retainCount" : 9668,
7+
"retainReleaseDelta" : 2187,
88
"throughput" : 2,
9-
"wallClock" : 646714708
9+
"wallClock" : 639631359
1010
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"allocatedResidentMemory" : 47579136,
3-
"cpuTotal" : 20000000,
2+
"allocatedResidentMemory" : 265158655,
3+
"cpuTotal" : 490209279,
44
"objectAllocCount" : 16,
5-
"releaseCount" : 48,
5+
"releaseCount" : 52,
66
"retainCount" : 2,
7-
"retainReleaseDelta" : 30,
8-
"throughput" : 2,
9-
"wallClock" : 648354417
7+
"retainReleaseDelta" : 34,
8+
"throughput" : 1,
9+
"wallClock" : 1876951039
1010
}

Benchmarks/Thresholds/5.9/SwiftKafkaConsumerBenchmarks.librdkafka_with_offset_commit_messages_1000.p90.json

Lines changed: 0 additions & 10 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"allocatedResidentMemory" : 81592320,
3-
"cpuTotal" : 200000000,
4-
"objectAllocCount" : 4609,
5-
"releaseCount" : 16389,
6-
"retainCount" : 9217,
7-
"retainReleaseDelta" : 2563,
2+
"allocatedResidentMemory" : 566231039,
3+
"cpuTotal" : 200015871,
4+
"objectAllocCount" : 5431,
5+
"releaseCount" : 18687,
6+
"retainCount" : 10863,
7+
"retainReleaseDelta" : 2415,
88
"throughput" : 2,
9-
"wallClock" : 709379209
9+
"wallClock" : 649592831
1010
}

0 commit comments

Comments
 (0)