Skip to content

Temporary JMH benchmark for post-HDDS-14647 SCMRatis codec#2

Open
Russole wants to merge 2 commits into
masterfrom
HDDS-14647-benchMark
Open

Temporary JMH benchmark for post-HDDS-14647 SCMRatis codec#2
Russole wants to merge 2 commits into
masterfrom
HDDS-14647-benchMark

Conversation

@Russole
Copy link
Copy Markdown
Owner

@Russole Russole commented May 4, 2026

What changes were proposed in this pull request?

  • Add a temporary local JMH benchmark for SCMRatisRequest and SCMRatisResponse codec encode/decode performance.
  • Use the post-HDDS-14647 SCMRatisResponse.encode(Object, Class<?>) API.
  • This PR is for reproducibility only and is not intended to be merged into Apache Ozone, since HDDS-10021 says Ozone releases cannot include JMH.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14647

How was this patch tested?

This benchmark was run locally on the after baseline with the HDDS-14647 codec changes applied.

mvn -pl hadoop-hdds/server-scm clean test-compile -DskipTests

mvn -pl hadoop-hdds/server-scm dependency:build-classpath \
  -Dmdep.outputFile=cp.txt \
  -DincludeScope=test

java -cp "hadoop-hdds/server-scm/target/test-classes:hadoop-hdds/server-scm/target/classes:$(cat hadoop-hdds/server-scm/cp.txt)" \
  org.openjdk.jmh.Main SCMRatisCodecBenchmark \
  -wi 5 -i 10 -f 3 \
  -rf json -rff after.json

@Russole Russole changed the title Hdds 14647 bench mark Temporary JMH benchmark for SCMRatis codec after baseline May 4, 2026
@Russole Russole changed the title Temporary JMH benchmark for SCMRatis codec after baseline Temporary JMH benchmark for post-HDDS-14647 SCMRatis codec May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant