Skip to content

Add CoreCLR runtime build for browser-wasm performance benchmarks#124786

Merged
ilonatommy merged 5 commits intodotnet:mainfrom
ilonatommy:perf-builds-coreclr-flavor
Feb 25, 2026
Merged

Add CoreCLR runtime build for browser-wasm performance benchmarks#124786
ilonatommy merged 5 commits intodotnet:mainfrom
ilonatommy:perf-builds-coreclr-flavor

Conversation

@ilonatommy
Copy link
Copy Markdown
Member

@ilonatommy ilonatommy commented Feb 24, 2026

This PR adds support for building and testing CoreCLR on browser-wasm in the performance pipeline, alongside the existing Mono builds.

Changes:

Add a new build job in perf-wasm-build-jobs.yml for CoreCLR targeting browser_wasm with artifact name BrowserWasmCoreCLR.
Parameterize perf-wasm-prepare-artifacts-steps.yml with runtimeFlavor and artifactName to support both runtimes
CoreCLR artifacts are smaller (only runtime pack needed) vs Mono (full SDK + nugets)
This enables running wasm benchmarks with --wasm-coreclr to compare performance between the two runtimes.

@ilonatommy ilonatommy self-assigned this Feb 24, 2026
Copilot AI review requested due to automatic review settings February 24, 2026 08:40
@ilonatommy ilonatommy added area-VM-coreclr perf-pipeline Issues with dotnet-runtime-perf, or runtime-wasm-perf pipelines labels Feb 24, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for building CoreCLR runtime for browser-wasm performance benchmarks, enabling performance comparisons between CoreCLR and Mono runtimes on the WASM platform. The changes parameterize existing WASM build infrastructure to support both runtime flavors.

Changes:

  • Parameterized perf-wasm-prepare-artifacts-steps.yml with runtimeFlavor and artifactName to support both Mono and CoreCLR
  • Added conditional artifact staging logic that copies different files based on runtime flavor (Mono needs full SDK + nugets, CoreCLR needs only runtime pack)
  • Added new CoreCLR build job in perf-wasm-build-jobs.yml that produces BrowserWasmCoreCLR artifacts

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
eng/pipelines/performance/templates/perf-wasm-prepare-artifacts-steps.yml Added parameters for runtime flavor and artifact name; split artifact preparation into Mono-specific (full SDK) and CoreCLR-specific (runtime pack only) paths
eng/pipelines/performance/templates/perf-wasm-build-jobs.yml Added CoreCLR build job alongside existing Mono job, with appropriate build arguments and artifact naming

Comment thread eng/pipelines/performance/templates/perf-wasm-build-jobs.yml
Copilot AI review requested due to automatic review settings February 24, 2026 19:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread eng/pipelines/performance/templates/perf-wasm-build-jobs.yml Outdated
Comment thread eng/pipelines/performance/templates/perf-wasm-build-jobs.yml
Comment thread eng/pipelines/performance/templates/perf-wasm-prepare-artifacts-steps.yml Outdated
@ilonatommy ilonatommy requested a review from maraf February 25, 2026 06:53
Comment thread eng/pipelines/performance/templates/perf-wasm-prepare-artifacts-steps.yml Outdated
Copilot AI review requested due to automatic review settings February 25, 2026 11:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread eng/pipelines/performance/templates/perf-wasm-build-jobs.yml
@ilonatommy ilonatommy merged commit b08387a into dotnet:main Feb 25, 2026
36 of 44 checks passed
iremyux pushed a commit to iremyux/dotnet-runtime that referenced this pull request Mar 2, 2026
…tnet#124786)

This PR adds support for building and testing CoreCLR on browser-wasm in
the performance pipeline, alongside the existing Mono builds.

Changes:

Add a new build job in `perf-wasm-build-jobs.yml` for CoreCLR targeting
browser_wasm with artifact name BrowserWasmCoreCLR.
Parameterize `perf-wasm-prepare-artifacts-steps.yml` with runtimeFlavor
and artifactName to support both runtimes
CoreCLR artifacts are smaller (only runtime pack needed) vs Mono (full
SDK + nugets)
This enables running wasm benchmarks with `--wasm-coreclr` to compare
performance between the two runtimes.
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-VM-coreclr perf-pipeline Issues with dotnet-runtime-perf, or runtime-wasm-perf pipelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants