frankvicky commented on PR #16494:
URL: https://github.com/apache/kafka/pull/16494#issuecomment-2214692676

   Hi @chia7712 
   I have move the subclass to jmh module, and following is the latest 
benchamrk:
   ```
   # JMH version: 1.37
   # VM version: JDK 17.0.11, OpenJDK 64-Bit Server VM, 17.0.11+9-LTS
   # VM options: <none>
   # Blackhole mode: compiler (auto-detected, use 
-Djmh.blackhole.autoDetect=false to disable)
   # Warmup: 5 iterations, 10 s each
   # Measurement: 10 iterations, 10 s each
   # Timeout: 10 min per iteration
   # Threads: 1 thread, will synchronize iterations
   # Benchmark mode: Average time, time/op
   
   Benchmark                                                       Mode  Cnt    
   Score       Error  Units
   ConsumerRecordsBenchmark.iteratorRecords                        avgt   10  
553053.483 ± 13412.339  ns/op
   ConsumerRecordsBenchmark.iteratorRecordsByLegacyImplementation  avgt   10  
498448.180 ± 37297.950  ns/op
   ConsumerRecordsBenchmark.records                                avgt   10    
   1.120 ±     0.004  ns/op
   ConsumerRecordsBenchmark.recordsWithLegacyImplementation        avgt   10    
  61.529 ±     0.391  ns/op
   JMH benchmarks done
   ```


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