Skip to content

Normalize JSON benchmark bodies. - #1388

Merged
adwsingh merged 1 commit into
mainfrom
adwsingh/serde-benchmark-normalization
Oct 8, 2026
Merged

adwsingh merged 1 commit into
mainfrom
adwsingh/serde-benchmark-normalization

Conversation

@adwsingh

@adwsingh adwsingh commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

What behavior changes?

JSON response bodies are minified during benchmark setup, while XML and opaque payloads retain their original bytes.

Why is this change needed?

Remove JSON formatting overhead from deserialization measurements without altering meaningful payload content.

How was this validated?

All 10 unit tests, spotlessCheck, compileJmhJava, and jmhJar passed; jar inspection confirmed one normalizer and no test classes.

What should reviewers focus on?

Review media-type precedence and byte preservation in WireBodyNormalizer, its integration in DeserializeState, and the JMH test exclusion.

Additional Links

None.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@adwsingh
adwsingh force-pushed the adwsingh/serde-benchmark-normalization branch from aea4891 to 154ed22 Compare October 8, 2026 01:44
@adwsingh
adwsingh requested a review from mtdowling October 8, 2026 01:45
@adwsingh
adwsingh force-pushed the adwsingh/serde-benchmark-normalization branch from 154ed22 to cd0fb67 Compare October 8, 2026 01:57
@adwsingh
adwsingh force-pushed the adwsingh/serde-benchmark-normalization branch from cd0fb67 to ee8201b Compare October 8, 2026 03:30
@adwsingh adwsingh added the perf Performance Optimization PRs label Oct 8, 2026
@adwsingh
adwsingh merged commit 852d8ab into main Oct 8, 2026
5 checks passed
@adwsingh
adwsingh deleted the adwsingh/serde-benchmark-normalization branch October 8, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf Performance Optimization PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants