Repository navigation
Add benchmark coverage for constructors and fields - #1243
Merged
masesdevelopers merged 12 commits intoSep 14, 2026
Merged
masesdevelopers merged 12 commits into
masesdevelopers merged 12 commits into
Conversation
This change adds new benchmark scenarios for Java constructor, field, and multi-parameter invocation paths. It extends TestPerformance with instance/static fields and a multi-parameter method, and adds ConstructorBenchmarks, FieldBenchmarks, and MultiParamInvokeBenchmarks to measure them. The GitHub benchmark workflow was also updated to publish the new result sets, cleaning the benchmark repository directory between uploads. Unused BenchmarkDotNet.Jobs imports were removed from the existing benchmark files.
| public void GetByteBufferDirectSpan() | ||
| { | ||
| using var res = _jClass.Invoke<ByteBuffer>("getByteBuffer"); | ||
| JCOBridgeDirectBuffer<byte> db = res.ToDirectBuffer(false); |
This change adds benchmark publishing for ByteArrayTransfer and ByteBufferTransfer, updates the benchmark comparison workflow to accept a custom filter, and refreshes the benchmark summary blocks in README and the docs landing page. It also adjusts ArrayVarArgs benchmark sizes to include a large case that exposes JNI reference overhead more clearly.
Annotate benchmarks with BenchmarkCategory (Core or BulkTransfer) and make large-array sweep selectable via ParamsSource controlled by BDN_FULL_SWEEP. Add a benchmark_bulk job and publish_history_bulk workflow steps, separate artifacts under results/core and results/bulk, introduce a Categories input and pass --anyCategories to BenchmarkDotNet runs, and update artifact names, grep paths, and summary extraction for robustness.
Adds a BdnFullSweep workflow input to the benchmark baseline and compare pipelines and passes it through as BDN_FULL_SWEEP. The ByteArrayTransfer benchmark now uses a reduced representative parameter set by default, but switches to the full Length/ForceRawMemory/UseCriticalMethods sweep when the environment flag is enabled. This keeps regular benchmark runs focused while allowing exhaustive bulk-transfer analysis when requested.
masesdevelopers
deleted the
617-add-a-mechanism-to-compare-execution-of-tests-across-environments-new-tests
branch
September 14, 2026 12:53
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.
Description
This change adds new benchmark scenarios for Java constructor, field, and multi-parameter invocation paths. It extends TestPerformance with instance/static fields and a multi-parameter method, and adds ConstructorBenchmarks, FieldBenchmarks, and MultiParamInvokeBenchmarks to measure them. The GitHub benchmark workflow was also updated to publish the new result sets, cleaning the benchmark repository directory between uploads. Unused BenchmarkDotNet.Jobs imports were removed from the existing benchmark files.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: