lamberken commented on pull request #10469:
URL: https://github.com/apache/kafka/pull/10469#issuecomment-813000740


   hi @dengziming, I'm not familiar with this jmh benchmark tool, I can show 
you the performance metrics, use following test script.
   ```
   cd kafka_2.12-2.7.0
   ./bin/kafka-producer-perf-test.sh \
   --topic demo_p30 \
   --num-records 5000000 \
   --record-size 512 \
   --throughput 2000000 \
   --print-metrics \
   --producer-props \
   bootstrap.servers=kafka-001:9092 \
   batch.size=512000 \
   linger.ms=100 \
   buffer.memory=128000000 \
   compression.type=zstd
   ```
   
   ### Before patch, the compression-rate is 0.005
   
![image](https://user-images.githubusercontent.com/20113411/113504183-0b61de00-9569-11eb-8872-9d549b080e03.png)
   
   ### After patch, the compression-rate is 0.611 which is the real rate
   
![image](https://user-images.githubusercontent.com/20113411/113504194-27657f80-9569-11eb-82c3-f1fa092fc0dc.png)
   
   
   


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to