Microsoft/calculator

Calculator startup time increased by 40ms after version 1906

Open

#939 opened on Jan 17, 2020

View on GitHub
 (1 comment) (2 reactions) (1 assignee)C++ (16,196 stars) (2,422 forks)batch import
Area: PerformanceBugPri: 2help wantedtriage approved

Description

Calculator version 10.1906.51.0 starts up about 40ms faster than more recent versions.

The main reason for this regression is that 1906 uses WinUI version 2.0, while later versions use WinUI 2.1 or 2.2. This is convenient to verify because the last commit in the 1906 branch switches to WinUI 2.0 instead of 2.1.

How to measure

  • Build the Calculator app in the x64 Release configuration
  • Deploy the app locally using Visual Studio
  • Use my MeasureAppStartupTime tool to repeatedly start the app and measure how much time it takes to reach the "UIResponsive" event. MeasureAppStartupTime.exe -n 30 Microsoft.WindowsCalculator.Dev_8wekyb3d8bbwe!App
  • Report the average time after 30 launches

Results

I tested on a fairly high-end Core i7-8700 desktop running Windows 10 Insider Preview Build 19546. The absolute performance difference is different on different machines, but the relative difference is always measurable.

Requested assignment

Help wanted.

Contributor guide