Jheng-Sing Chen created HDDS-15164:
--------------------------------------

             Summary: Add a JMH benchmark to measure SCMRatisRequest and 
SCMRatisResponse codec performance.
                 Key: HDDS-15164
                 URL: https://issues.apache.org/jira/browse/HDDS-15164
             Project: Apache Ozone
          Issue Type: Task
            Reporter: Jheng-Sing Chen
            Assignee: Jheng-Sing Chen


The benchmark should measure encode/decode throughput separately for request 
and response paths. It should pre-generate benchmark inputs with a fixed random 
seed so that the measured time focuses on codec serialization/deserialization 
rather than test data generation.

Initial benchmark coverage:
- SCMRatisRequest encode
- SCMRatisRequest decode
- SCMRatisResponse encode
- SCMRatisResponse decode
- PipelineID protobuf payload
- Long payload
- List<PipelineID> payload

Benchmark configuration:
- JMH 1.37
- Throughput mode
- 5 warmup iterations
- 10 measurement iterations
- 3 forks
- 1000 pre-generated input objects

This benchmark can be used to compare SCM Ratis codec performance before and 
after HDDS-14647.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to