FrankYang0529 commented on PR #18216:
URL: https://github.com/apache/kafka/pull/18216#issuecomment-2561878815

   Hi @ijuma, thanks for the review. The good part is that we eliminate data 
conversion time. We don't need to convert data from `PartitionResponse` to 
`ProduceResponseData.PartitionProduceResponse`.
   
   
   Before (trunk):
   ```
   Result 
"org.apache.kafka.jmh.producer.ProducerResponseBenchmark.constructorProduceResponse":
     209.285 ±(99.9%) 1.822 ns/op [Average]
     (min, avg, max) = (204.419, 209.285, 211.999), stdev = 1.705
     CI (99.9%): [207.463, 211.108] (assumes normal distribution)
   ```
   
   After (this branch):
   ```
   Result 
"org.apache.kafka.jmh.producer.ProducerResponseBenchmark.constructorProduceResponse":
     139.632 ±(99.9%) 36.446 ns/op [Average]
     (min, avg, max) = (67.455, 139.632, 173.913), stdev = 34.091
     CI (99.9%): [103.187, 176.078] (assumes normal distribution)
   ```


-- 
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

Reply via email to