KIP-403 — Increase ProducerPerformance precision by using nanoTime
Discussion Producer
Switches ProducerPerformance's latency measurement from System.currentTimeMillis() to System.nanoTime() for sub-millisecond precision. The ms-granularity timer caused many samples to report 0ms latency on fast systems, skewing percentile calculations and making it impossible to benchmark high-throughput producers accurately.
Details
| Author | Kevin Lu |
| Status | Discussion |
| JIRA | KAFKA-7722 |
| Wiki | View on Apache Wiki |
| Created | 2018-12-11 |
| Last Modified | 2018-12-19 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.