wassup (Windows Application Startup System Usage Profiler) - Tiny ~15 KB CLI Tool with ~3 KB Baseline GUI App
wassup is a tiny command-line tool for profiling how quickly a Windows GUI application launches a visible top-level window, together with a snapshot of basic resource usage.
Microsoft’s post The new Run dialog: faster, cleaner, and more capable reported a 94 ms median time-to-show for the modern Run dialog, versus 103 ms for the existing one. The controversial part for me was not the numbers themselves. There was not enough methodology to reproduce or independently interpret them. What is the exact start and end point? Under which conditions? For which population? And where is the raw distribution?
That is pretty much why I made wassup.exe. First, the measurement is explicit:
from launching the process to a visible top-level window associated with it.
Second, minwin.exe establishes a deliberately tiny baseline. We can then
compare an application with the cost of creating a process and showing the
simplest possible window on the exact same machine.
The x64 wassup.exe is about 15 KB, while its bundled minwin.exe test
application is only about 3 KB. Yes, that is KB. Both use only stack
allocation and no C runtime, so there is not much to blame for the size.
minwin.exe is deliberately useless except as a test application. It creates a
bare Windows GUI window, giving a lower bound for both Windows startup and
wassup’s visible-window measurement. Below is that lower bound next to the
classic winver.exe system dialog, Notepad, and Paint.
Example Measurements
The command is deliberately simple. wassup options first, then a mandatory
--, then the target:
1
./wassup.exe -n 5 --kill -- ./minwin.exe
The following five-run test was taken on an AMD Ryzen 9 9950X3D2 with 64 GB RAM,
an NVIDIA GeForce RTX 5070 Ti, and Windows 11 Pro 26H2 (build 26300). On that
machine, notepad.exe resolves to packaged Notepad 11.2609.11.0 and
mspaint.exe to packaged Paint 11.2609.441.0. The values are copied directly
from wassup’s output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# .\minwin.exe
| Run | Status | ReadyUs | Handles | Threads | Modules | PrivateBytes | WorkingSetBytes | ReadBytes | WriteBytes | ReadOps | WriteOps | Pid | Association | Win32Error |
| ---: | :------ | ------: | ------: | ------: | ------: | -----------: | --------------: | --------: | ---------: | ------: | -------: | -----: | :---------- | ---------: |
| 1 | Success | 12605 | 87 | 4 | 18 | 5431296 | 8241152 | 3365 | 0 | 1 | 0 | 41852 | Direct | - |
| 2 | Success | 8624 | 87 | 4 | 18 | 5435392 | 8261632 | 0 | 0 | 0 | 0 | 41520 | Direct | - |
| 3 | Success | 9019 | 87 | 4 | 18 | 5410816 | 8245248 | 0 | 0 | 0 | 0 | 10440 | Direct | - |
| 4 | Success | 9280 | 87 | 4 | 18 | 5419008 | 8228864 | 0 | 0 | 0 | 0 | 23620 | Direct | - |
| 5 | Success | 9043 | 87 | 4 | 18 | 5414912 | 8237056 | 0 | 0 | 0 | 0 | 33760 | Direct | - |
| Min | - | 8624 | 87 | 4 | 18 | 5410816 | 8228864 | 0 | 0 | 0 | 0 | - | - | - |
| Mean | - | 9714 | 87 | 4 | 18 | 5422284 | 8242790 | 673 | 0 | 0 | 0 | - | - | - |
| Max | - | 12605 | 87 | 4 | 18 | 5435392 | 8261632 | 3365 | 0 | 1 | 0 | - | - | - |
# winver.exe
| Run | Status | ReadyUs | Handles | Threads | Modules | PrivateBytes | WorkingSetBytes | ReadBytes | WriteBytes | ReadOps | WriteOps | Pid | Association | Win32Error |
| ---: | :------ | ------: | ------: | ------: | ------: | -----------: | --------------: | --------: | ---------: | ------: | -------: | -----: | :---------- | ---------: |
| 1 | Success | 36747 | 175 | 4 | 35 | 2662400 | 16904192 | 60 | 0 | 1 | 0 | 9136 | Direct | - |
| 2 | Success | 39371 | 175 | 4 | 35 | 2658304 | 16896000 | 60 | 0 | 1 | 0 | 19852 | Direct | - |
| 3 | Success | 40742 | 175 | 4 | 35 | 2678784 | 16887808 | 60 | 0 | 1 | 0 | 19020 | Direct | - |
| 4 | Success | 40588 | 175 | 4 | 35 | 2654208 | 16891904 | 60 | 0 | 1 | 0 | 39144 | Direct | - |
| 5 | Success | 55340 | 175 | 4 | 35 | 2678784 | 16932864 | 60 | 0 | 1 | 0 | 34788 | Direct | - |
| Min | - | 36747 | 175 | 4 | 35 | 2654208 | 16887808 | 60 | 0 | 1 | 0 | - | - | - |
| Mean | - | 42557 | 175 | 4 | 35 | 2666496 | 16902553 | 60 | 0 | 1 | 0 | - | - | - |
| Max | - | 55340 | 175 | 4 | 35 | 2678784 | 16932864 | 60 | 0 | 1 | 0 | - | - | - |
# notepad.exe
| Run | Status | ReadyUs | Handles | Threads | Modules | PrivateBytes | WorkingSetBytes | ReadBytes | WriteBytes | ReadOps | WriteOps | Pid | Association | Win32Error |
| ---: | :------ | ------: | ------: | ------: | ------: | -----------: | --------------: | --------: | ---------: | ------: | -------: | -----: | :---------- | ---------: |
| 1 | Success | 154748 | 659 | 20 | 121 | 50540544 | 80601088 | 13243 | 8 | 125 | 1 | 14220 | Descendant | - |
| 2 | Success | 124920 | 657 | 20 | 121 | 50503680 | 80568320 | 13243 | 8 | 125 | 1 | 25252 | Descendant | - |
| 3 | Success | 124493 | 657 | 21 | 121 | 51806208 | 81756160 | 13067 | 8 | 119 | 1 | 6288 | Descendant | - |
| 4 | Success | 131285 | 658 | 21 | 121 | 50683904 | 80744448 | 13243 | 8 | 125 | 1 | 33836 | Descendant | - |
| 5 | Success | 123200 | 657 | 20 | 121 | 50630656 | 80670720 | 13243 | 8 | 125 | 1 | 28884 | Descendant | - |
| Min | - | 123200 | 657 | 20 | 121 | 50503680 | 80568320 | 13067 | 8 | 119 | 1 | - | - | - |
| Mean | - | 131729 | 657 | 20 | 121 | 50832998 | 80868147 | 13207 | 8 | 123 | 1 | - | - | - |
| Max | - | 154748 | 659 | 21 | 121 | 51806208 | 81756160 | 13243 | 8 | 125 | 1 | - | - | - |
# mspaint.exe
| Run | Status | ReadyUs | Handles | Threads | Modules | PrivateBytes | WorkingSetBytes | ReadBytes | WriteBytes | ReadOps | WriteOps | Pid | Association | Win32Error |
| ---: | :------ | ------: | ------: | ------: | ------: | -----------: | --------------: | --------: | ---------: | ------: | -------: | -----: | :---------- | ---------: |
| 1 | Success | 392583 | 1152 | 127 | 146 | 132354048 | 126603264 | 86892 | 1570 | 459 | 13 | 41112 | Direct | - |
| 2 | Success | 345279 | 1152 | 127 | 146 | 130605056 | 126025728 | 34899 | 1558 | 458 | 13 | 9056 | Direct | - |
| 3 | Success | 357425 | 1152 | 127 | 146 | 130793472 | 125890560 | 34899 | 1570 | 458 | 13 | 41652 | Direct | - |
| 4 | Success | 344069 | 1154 | 128 | 146 | 130686976 | 126144512 | 34899 | 1561 | 458 | 13 | 40004 | Direct | - |
| 5 | Success | 341473 | 1152 | 127 | 146 | 130416640 | 125734912 | 34899 | 1570 | 458 | 13 | 41120 | Direct | - |
| Min | - | 341473 | 1152 | 127 | 146 | 130416640 | 125734912 | 34899 | 1558 | 458 | 13 | - | - | - |
| Mean | - | 356165 | 1152 | 127 | 146 | 130971238 | 126079795 | 45297 | 1565 | 458 | 13 | - | - | - |
| Max | - | 392583 | 1154 | 128 | 146 | 132354048 | 126603264 | 86892 | 1570 | 459 | 13 | - | - | - |
For warm-start time, I use the minimum; the resource figures below are the
means. A Windows process can have a visible window in 8.6 ms with
minwin.exe. 8.6 ms! At that point it has 87 handles, 4 threads, and 18
loaded modules, with about 5.4 MB private and an 8.2 MB working set.
winver.exe is a nice reality check. It is an unpackaged Windows system
program showing a normal Win32 dialog, so this is not a contrived benchmark
application. It takes 36.7 ms, 4.3 times minwin.exe, with 175 handles, 4
threads, and 35 modules. Private bytes are only about 2.7 MB, while the
working set is 16.9 MB after loading the dialog, shell, and system facilities.
Then we get to Notepad at 123.2 ms. That is 3.4 times winver.exe and 14.3
times minwin.exe, with about 657 handles, 20 threads, 121 modules, 50.8 MB
private bytes, and an 80.9 MB working set.
Paint takes 341.5 ms. That is 2.8 times Notepad, 9.3 times winver.exe,
and 39.6 times minwin.exe. At that point it is already at about 1,152
handles, 127 threads, 146 modules, 131.0 MB private bytes, and a 126.1 MB
working set.
This compares three different application shapes: the minimal direct-Win32
baseline, a traditional system Win32 dialog, and modern packaged desktop apps.
Notepad and Paint are both full-trust packaged apps backed by the Windows App
Runtime 2.x and WinUI 3/XAML; their package manifests depend on
Microsoft.WindowsAppRuntime.2 and the Visual C++ framework packages. At
startup they load the
Microsoft.UI.Xaml and Microsoft.UI components, Windows UI and input
services, WinRT messaging, Direct2D/DirectWrite, Direct3D, and
DirectComposition. They are “modern” Windows desktop applications, but that
does not mean it is .NET or C# doing all the work. No CoreCLR is present in the
sampled module lists. What is visible here is a large native runtime and
composition stack.
Notepad is not the old bare richedit-based application any more. The installed
package has a native Notepad.exe, NotepadXamlUI.dll, and XAML binaries, and
it also loads the composition, input, windowing, text-shaping, and font stacks
listed above. That helps explain 121 modules and 20-21 threads before wassup
even considers the window visible. Not every thread is a Notepad feature
thread, of course; some belong to infrastructure pools and services.
Paint adds another layer again. In addition to the same WinUI/XAML and
composition stack, the package contains BasePaint, ImageProcessing,
PaintTools, PaintUI, Microsoft.Graphics.Canvas, AI/image-creation
components, and ONNX Runtime support. Startup loads Direct2D/Direct3D,
WARP/software-rendering support, Windows Imaging Component, MFC, feature
management, reporting, provenance, and Windows AI modules. Paint also has
substantially richer image, layer, effects, touch, and AI functionality than an
empty canvas control suggests. 127-128 threads and 146 modules at the measured
point are not one thread per Paint tool. Worker pools, composition, GPU
drivers, imaging, and app features all contribute, and the pools may scale
with this system’s 32 logical processors. Still, that is a lot for showing an
empty Paint window.
wassup does not pretend to map every thread or module back to a line of
source. That is not what it is for. It shows the scale of the startup
environment. The 8.6 ms minwin.exe result shows how little is needed to meet
the same visible-window milestone with direct Win32 code; Notepad and Paint
bring the cost of a modern packaged application stack along for the ride.
The association column has a useful detail too. Notepad’s visible window is a
Descendant of the original command, while minwin, winver, and Paint are
Direct. That is Notepad’s packaged launch path. Without job-based descendant
handling, wassup would simply miss it or attribute the window to the wrong
process.
One Deliberate Milestone
ReadyUs means a visible, top-level, unowned window associated with the
launched process or a qualifying handoff. It is not first-frame presentation,
completed rendering, input responsiveness, or proof that the application is
useful yet. The resource columns are a snapshot at that milestone, not peak
usage.
This narrow definition is part of what keeps wassup tiny. It is a benchmark
for one milestone, not a universal “startup score” for the application. See
the wassup
README for the options,
exact readiness rules, build instructions, and current limitations.
The x64 binaries are available from the 0.0.1 release.
That’s all! 😁
PS: This blog post was written with LLM assistance.
