test: extend DynamoDB performance benchmarks - #7300
Open
iulianbudau wants to merge 1 commit into
Open
Conversation
Add deterministic mocked full-pipeline benches (LOW/DOCUMENT/TYPED, sync + async Get) and opt-in live DynamoDB benches. Manual JMH only; BenchmarkRunner, shards, baselines, and CI are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
AWS SDK for Java v2 already has useful DynamoDB protocol/marshalling and Enhanced Client mapper benchmarks, but coverage is fragmented across different measurement boundaries. Those existing benches remain valuable; this change complements them rather than replacing them.
This PR adds a coherent DynamoDB-specific suite under
test/sdk-benchmarksso maintainers can evaluate:All newly added benchmarks are manual-execution only. This PR does not modify
BenchmarkRunner,MAPPER_BENCHMARKSskip behavior, shards,baseline.json, regression gates, CI workflows, or scheduled live execution.Modifications
Tier C — Mocked full SDK pipeline
Deterministic client-side path (Enhanced mapping where applicable → endpoint resolution → marshalling → SigV4 → HTTP construction → mocked HTTP → unmarshalling → response mapping).
Coverage:
join())join())Shared deterministic fixture and operation-aware canned responses via existing sync
MockHttpClientandMockAsyncHttpClient.Tier D — Live DynamoDB
Coverage: LOW GetItem/PutItem; TYPED GetItem/PutItem/Query (first page).
Measures SDK + HTTP + network + DynamoDB service latency. Safety model: explicit opt-in before credentials/client/AWS calls; unique owned
PAY_PER_REQUESTtables with ownership tags; teardown deletes only the trial-created table; lightweight retry observer (opt-out available); synthetic data only.Docs / deps
test/sdk-benchmarks/DYNAMODB.md+ README pointer (tiers, commands, live safety, interpretation)junit(test) andservice-test-utils(compile, with unused test-only transitive exclusions) for async mock HTTPMethodology
AverageTime, µs, 5/5/2SampleTime, ms, 3/5/1Deferred (intentionally out of scope)
CI/shard/baseline integration; async Put/Query and concurrency; broader DOCUMENT async/live; Batch/Transact; expanded parameter matrices.
Testing
sdk-benchmarksmodule build + checkstyle passedRepresentative numbers from one validation environment only (not targets):
Screenshots (if appropriate)
N/A
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License