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.
Before memory optimizations
Benchmark results on commit a6199e8 (before optimizations):
Allocations for
ClusterBenchmarkRunner.writeDataUsingCallAPI
(before optimizations):TLAB allocations for
ClusterBenchmarkRunner.writeDataUsingCallAPI
(before optimizations):After memory optimizations
Benchmark results on commit 5f9e69c (after optimizations):
Allocations for
ClusterBenchmarkRunner.writeDataUsingCallAPI
(after optimizations):TLAB allocations for
ClusterBenchmarkRunner.writeDataUsingCallAPI
(after optimizations):Summary
The average throughput gain is about 40% on read operations and 30% on write operations. The benchmark run completes approx. 30% faster with optimizations. The main reason for improvements can be a >50% reduction in allocations.
Benchmark runs were performed with JDK 17, G1 GC (default settings), using the following command: