DoChaoing opened a new pull request, #8014: URL: https://github.com/apache/incubator-seata/pull/8014
### Ⅰ. Describe what this PR did This PR adds P99.9 latency percentile support to the benchmark CLI, which is critical for tail latency analysis in distributed transaction systems. ### Ⅱ. Does this pull request fix one issue? Fixes #8011 ### Ⅲ. Why don't you add test cases (unit test/integration test)? The change is a straightforward addition of a new latency metric calculation and output. Existing benchmark tests will automatically include the new P99.9 metric. ### Ⅳ. Describe how to verify it 1. Run the benchmark CLI: `java -jar seata-benchmark-cli.jar --mode AT --threads 10 --duration 60` 2. Check the final report output includes P99.9 latency 3. Export to CSV and verify P99.9 column exists ### Ⅴ. Special notes for reviewers **Changes:** 1. `BenchmarkMetrics.LatencyStats` - Added `p999` field and getter 2. `BenchmarkMetrics.getLatencyStats()` - Added P99.9 calculation using `Math.ceil(size * 0.999)` 3. `MetricsCollector.generateFinalReport()` - Added P99.9 output 4. `MetricsCollector.exportToCsv()` - Added P99.9 row P99.9 is a standard metric in performance benchmarking tools (e.g., Kafka ProducerPerformance) and is essential for understanding tail latency behavior in distributed systems. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
