conduktor.io ↗

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

AuthorKevin Lu
StatusDiscussion
JIRAKAFKA-7722
WikiView on Apache Wiki
Created2018-12-11
Last Modified2018-12-19
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.