Skip to content

Performance of net7 is worse than net6 in WPF controls (at least) #7388

@arivoir

Description

@arivoir

After upgrading a WPF benchmark application from net6 to net7 I noticed the performance got slightly degraded. The difference is not huge, but since it affects all the ui the impact can be big, and really unexpected.

WPFGridsBenchmark (2).zip

To reproduce the issue please follow the next steps.

  1. extract the application
  2. Build it in "Release" configuration
  3. Run it by clicking the exe (instead of debugging from VS)
  4. Maximize the app
  5. Click "Run all tests" button.
  6. Close the app
  7. Edit "C1GridsBenchmarkUsingNuget" to target net7 <TargetFramework>net7.0-windows</TargetFramework>
  8. Repeat the same steps

In the same directory as the exe there will be some xls files created by the application

image

image

Notice the performance got degraded in almost all the cases in all the grids.

Metadata

Metadata

Assignees

Labels

InvestigateRequires further investigation by the WPF team.PerformancePerformance related issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions