johnny94 commented on PR #19793: URL: https://github.com/apache/kafka/pull/19793#issuecomment-2928683611
@chia7712 I compared the performance of this patch with the current release. Used command: ``` bin/kafka-producer-perf-test.sh --topic perf-test --num-records 10000000 --record-size 1024 --throughput -1 --producer-props bootstrap.servers=127.0.0.1:9092 compression.type=lz4 ``` Current 4.0.0 release ``` 1245217 records sent, 249043.4 records/sec (243.21 MB/sec), 11.1 ms avg latency, 245.0 ms max latency. 1312564 records sent, 262512.8 records/sec (256.36 MB/sec), 0.3 ms avg latency, 14.0 ms max latency. 1341438 records sent, 268287.6 records/sec (262.00 MB/sec), 0.3 ms avg latency, 13.0 ms max latency. 1360444 records sent, 272088.8 records/sec (265.71 MB/sec), 0.3 ms avg latency, 18.0 ms max latency. 1321365 records sent, 264273.0 records/sec (258.08 MB/sec), 0.4 ms avg latency, 21.0 ms max latency. 1323991 records sent, 264798.2 records/sec (258.59 MB/sec), 0.3 ms avg latency, 18.0 ms max latency. 1325585 records sent, 265117.0 records/sec (258.90 MB/sec), 0.3 ms avg latency, 13.0 ms max latency. 10000000 records sent, 263775.7 records/sec (257.59 MB/sec), 1.66 ms avg latency, 245.00 ms max latency, 0 ms 50th, 1 ms 95th, 85 ms 99th, 106 ms 99.9th. ``` After this patch (with trunk code) ``` 1194836 records sent, 238967.2 records/sec (233.37 MB/sec), 12.5 ms avg latency, 247.0 ms max latency. 1369470 records sent, 273894.0 records/sec (267.47 MB/sec), 0.3 ms avg latency, 14.0 ms max latency. 1382058 records sent, 276411.6 records/sec (269.93 MB/sec), 0.3 ms avg latency, 12.0 ms max latency. 1388451 records sent, 277690.2 records/sec (271.18 MB/sec), 0.3 ms avg latency, 9.0 ms max latency. 1365253 records sent, 273050.6 records/sec (266.65 MB/sec), 0.3 ms avg latency, 13.0 ms max latency. 1359113 records sent, 271822.6 records/sec (265.45 MB/sec), 0.3 ms avg latency, 13.0 ms max latency. 1372306 records sent, 274461.2 records/sec (268.03 MB/sec), 0.3 ms avg latency, 15.0 ms max latency. 10000000 records sent, 268348.3 records/sec (262.06 MB/sec), 1.74 ms avg latency, 247.00 ms max latency, 0 ms 50th, 1 ms 95th, 100 ms 99th, 113 ms 99.9th. ``` Summary: - Throughput is a bit higher - avg, 99th, 99.9th latency is a bit higher -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org