Skip to content

Add benchmark coverage for constructors and fields - #1243

Merged
masesdevelopers merged 12 commits into
masterfrom
617-add-a-mechanism-to-compare-execution-of-tests-across-environments-new-tests
Sep 14, 2026
Merged

masesdevelopers merged 12 commits into
masterfrom
617-add-a-mechanism-to-compare-execution-of-tests-across-environments-new-tests

Conversation

@masesdevelopers

Copy link
Copy Markdown
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

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.
@masesdevelopers masesdevelopers self-assigned this Sep 13, 2026
@masesdevelopers
masesdevelopers requested a review from a team as a code owner September 13, 2026 00:25
@masesdevelopers masesdevelopers added enhancement New feature or request .NET Pull requests that update .net code java Pull requests that update Java code labels Sep 13, 2026
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
masesdevelopers merged commit 642c0cd into master Sep 14, 2026
11 of 13 checks passed
@masesdevelopers
masesdevelopers deleted the 617-add-a-mechanism-to-compare-execution-of-tests-across-environments-new-tests branch September 14, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java Pull requests that update Java code .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a mechanism to compare execution of tests across environments

1 participant