Skip to content

Conversation

@Shrinidhi203
Copy link
Contributor

Fixes #2573

Problem

When using multiple coreruns (e.g., --coreRun /base/corerun /diff/corerun), the disassembly report (*-asm.md)
showed identical headers, making it hard to distinguish which assembly belongs to which corerun:

.NET 9.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
some asm

.NET 9.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
some asm

Solution

Add Job DisplayInfo to the headers so users can distinguish between multiple coreruns:

.NET 9.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI (Job: Toolchain=/base/corerun)
some asm

.NET 9.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI (Job: Toolchain=/diff/corerun)
some asm

Changes

  • GithubMarkdownDisassemblyExporter.cs - Add Job info inline in header
  • HtmlDisassemblyExporter.cs - Add Job info as <h3> tag
  • GithubMarkdownDiffDisassemblyExporter.cs - Add Job info to comparison output
  • Added unit tests

…th arguments

  Fixes dotnet#2724

  When running BenchmarkRunner.Run<T>() or BenchmarkRunner.Run(Type) with
  arguments on an invalid benchmark type (no [Benchmark] methods), the runner
  threw an unhandled InvalidOperationException instead of returning a validation error.

  Changes:
  - Replace .Single() with .SingleOrDefault() in RunWithDirtyAssemblyResolveHelper
  - Return Summary.ValidationFailed when no benchmarks are found
  - Enable and update tests for args scenarios in RunningEmptyBenchmarkTests.cs"
  When using multiple coreruns, the disassembly report headers were identical, making it impossible to distinguish which assembly belongs to which corerun.
  Changes:
  - Add Job DisplayInfo to markdown header: ## {RuntimeInfo} (Job: {JobDisplayInfo})
  - Add Job info as <h3> in HTML exporter
  - Add Job info to diff exporter comparison output
  - Add tests verifying Job info is included in headers"
Copy link
Collaborator

@timcassell timcassell left a comment

Choose a reason for hiding this comment

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

Thanks @Shrinidhi203

@timcassell timcassell merged commit be0ea1e into dotnet:master Nov 29, 2025
9 checks passed
@timcassell timcassell added this to the v0.15.8 milestone Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DisassemblyDiagnoser + multiple --corerun

2 participants