Repository navigation
Closed
Labels
arch-x64area-System.ComponentModelos-windowsruntime-coreclrspecific to the CoreCLR runtimetenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark
Description
Run Information
| Name | Value |
|---|---|
| Architecture | x64 |
| OS | Windows 10.0.22621 |
| Queue | TigerWindows |
| Baseline | b8fe8055082e510992c51b15556ba84842f32f81 |
| Compare | aafa7f842f00021d32ff0c3045559f2602f41188 |
| Diff | Diff |
| Configs | CompilationMode:tiered, RunKind:micro |
Regressions in System.ComponentModel.Tests.Perf_TypeDescriptorTests
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 81.57 ns | 153.37 ns | 1.88 | 0.05 | False | ||||
| 53.77 ns | 126.25 ns | 2.35 | 0.04 | False | ||||
| 53.81 ns | 124.68 ns | 2.32 | 0.04 | False | ||||
| 81.66 ns | 154.60 ns | 1.89 | 0.04 | False | ||||
| 81.21 ns | 154.57 ns | 1.90 | 0.03 | False | ||||
| 87.94 ns | 155.27 ns | 1.77 | 0.02 | False | ||||
| 81.24 ns | 153.83 ns | 1.89 | 0.04 | False | ||||
| 79.39 ns | 152.90 ns | 1.93 | 0.03 | False | ||||
| 45.32 ns | 123.11 ns | 2.72 | 0.41 | False | ||||
| 53.26 ns | 126.62 ns | 2.38 | 0.05 | False | ||||
| 99.02 ns | 184.74 ns | 1.87 | 0.07 | False |
Repro
General Docs link: https://github.com/dotnet/performance/blob/main/docs/benchmarking-workflow-dotnet-runtime.md
git clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.ComponentModel.Tests.Perf_TypeDescriptorTests*'Details
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(System.ComponentModel.Tests.DerivedClass))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(System.ComponentModel.Tests.ClassWithNoConverter))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(string))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(System.Guid))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(System.Enum))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(int?))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(System.ComponentModel.Tests.SomeValueType?))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(int))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(System.ComponentModel.Tests.IDerived))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(System.ComponentModel.Tests.ClassIDerived))
ETL Files
Histogram
JIT Disasms
System.ComponentModel.Tests.Perf_TypeDescriptorTests.GetConverter(typeToConvert: typeof(System.ComponentModel.Tests.SomeEnum))
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Metadata
Metadata
Assignees
Labels
arch-x64area-System.ComponentModelos-windowsruntime-coreclrspecific to the CoreCLR runtimetenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark











Activity
LoopedBard3 commentedon Sep 9, 2025
Related Regressions:
DrewScoggins commentedon Sep 9, 2025
Caused by #114619
Additional regressions:
dotnet-policy-service commentedon Sep 9, 2025
Tagging subscribers to this area: @dotnet/area-system-componentmodel
See info in area-owners.md if you want to be subscribed.
ericstj commentedon Sep 15, 2025
@alexey-zakharov this seems to be caused by #114619
I confirmed the regression. I thought it might have been solely caused by the change in implementation of
WeakHashTablebut reverting just that still shows a regression. Here's a local repro of this, benchmarking just GetConverter(int32).I'm having a look at a different solution here that preserves the fix but doesn't regress the hotpath.
ericstj commentedon Sep 15, 2025
Just the following change will fix the regression:
So I might have a look at CollectibleKeyConcurrentHashtable to see if there is opportunity for optimization.
ericstj commentedon Sep 15, 2025
It appears this cost is coming from the
!key.IsCollectiblecheck. Leaving all else in place, removing this check fromCollectibleKeyConcurrentHashtableTryGetValueandTryAddwill resolve the regression (identified as hot-path in NodeFor method). Adding this back, even as_ = !key.IsCollectible;will bring back the regression.Let me see about adding
IsCollectibleto theRuntimeTypeCacheImprove performance of IsCollectible reflection properties
alexey-zakharov commentedon Sep 16, 2025
thanks @ericstj for taking a look!
it seems that the change is great, just needs to take into account thread safety.