dotnet / dotnet/perf-autofiling-issues

[Perf] Windows/x86: 3 Improvements on 4/11/2026 7:34:52 AM +00:00

Open
#71,323 0 comments 0 reactions 0 assignees View on GitHub
arch-x86 branch-refs/heads/main compilationmode-tiered kind-micro os-windows perf-improvement runkind-micro runtime-coreclr untriaged
Dominant language
No language data
Stars
10
Forks
8
PR merge metrics
PR metrics pending

Description

### Run Information

Name | Value
-- | --
Architecture | x86
OS | Windows 10.0.22631
Queue | ViperWindows
Baseline | [1584123471b057246f270c93146a0787e70d8557](https://github.com/dotnet/runtime/commit/1584123471b057246f270c93146a0787e70d8557)
Compare | [e583c98763e224e5d6587a9d8fc732a33b1d808b](https://github.com/dotnet/runtime/commit/e583c98763e224e5d6587a9d8fc732a33b1d808b)
Diff | [Diff](https://github.com/dotnet/runtime/compare/1584123471b057246f270c93146a0787e70d8557...e583c98763e224e5d6587a9d8fc732a33b1d808b)
Configs | CompilationMode:tiered, RunKind:micro

### Improvements in Interop.StructureToPtr

Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio
-- | -- | -- | -- | -- | -- | -- | -- | --
|

  • [MarshalDestroyStructure - Duration of single invocation]()
  • 📝 - [Benchmark Source]()
  • [ADX - Test Multi Config Graph]()
| 156.28 ns | 110.33 ns | 0.71 | 0.05 | False | | |
|
  • [MarshalPtrToStructure - Duration of single invocation]()
  • 📝 - [Benchmark Source]()
  • [ADX - Test Multi Config Graph]()
| 62.81 ns | 44.96 ns | 0.72 | 0.05 | False | | |
|
  • [MarshalStructureToPtr - Duration of single invocation]()
  • 📝 - [Benchmark Source]()
  • [ADX - Test Multi Config Graph]()
| 60.89 ns | 43.79 ns | 0.72 | 0.05 | False | | |

[Test Report]()

### Repro
General Docs link: https://github.com/dotnet/performance/blob/main/docs/benchmarking-workflow-dotnet-runtime.md

```cmd
git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'Interop.StructureToPtr*'
```

### Interop.StructureToPtr.MarshalDestroyStructure

#### ETL Files

#### Histogram

#### JIT Disasms

### Interop.StructureToPtr.MarshalPtrToStructure

#### ETL Files

#### Histogram

#### JIT Disasms

### Interop.StructureToPtr.MarshalStructureToPtr

#### ETL Files

#### Histogram

#### JIT Disasms

### Docs

[Profiling workflow for dotnet/runtime repository](https://github.com/dotnet/performance/blob/master/docs/profiling-workflow-dotnet-runtime.md)
[Benchmarking workflow for dotnet/runtime repository](https://github.com/dotnet/performance/blob/master/docs/benchmarking-workflow-dotnet-runtime.md)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.