backdesk Benchmarks: Method, Hardware, Latency and Host Isolation Run
One host isolation run was measured on one machine: 100 mixed operations against a test form, with a sentinel counting input events that the OS flags as injected. It found 0 injected keyboard events, 0 injected mouse events and no change to the host foreground window. No competitor comparison was run.
The same run in visible desktop mode (2026-12-01, apps on the user's desktop): 100 operations, 0 injected keyboard events, 0 injected mouse events, no host foreground change, p50 256 ms, p95 2257 ms (UI Automation set_text p50 2254 ms). Raw results are written to artifacts/bench/isolation-run-visible.json, which is not committed.
Machine
| Item | Value |
|---|---|
| OS | Windows 11 Home 26H2, build 10.0.26300.9974 (Insider-channel build), x64 |
| CPU and memory | AMD Ryzen 7 5800X (8 cores), 32 GB RAM |
| Display | two 1920x1080 monitors at 96 DPI, both at non-negative coordinates |
| Toolchain | .NET SDK 10.0.303; self-contained single-file win-x64 exe |
Method
- Workload: the fixture form app (a test app in this repository, not shipped) on a hidden desktop. The run mixes seven operations:
observe,click,type_text,key,scroll,set_textanddrag. - A host-side sentinel window counted OS-flagged injected keyboard and mouse events, messages it received, minimized-state changes of host windows, and changes of the host foreground window, while the operations ran.
- Latency is measured per operation. Every input operation includes a 150 ms settle delay before the "after" frame hash, so input latencies have a floor near 150 ms.
- Raw samples are in
artifacts/bench/isolation-run.json. Run on 2026-11-23.
Results: Host Isolation
| Counter | Result |
|---|---|
| Operations | 100 |
| Injected keyboard events seen by the sentinel | 0 |
| Injected mouse events seen by the sentinel | 0 |
| Messages to the sentinel window | 0 |
| Host windows whose minimized state changed | 0 |
| Host foreground changed | no |
| Injected events counted after each operation type | 0 for all seven |
Results: Latency (Milliseconds)
| Operation | Samples | p50 | p95 |
|---|---|---|---|
| all operations | 100 | 222.5 | 2206.8 |
observe | 15 | 18.2 | 77.8 |
click | 15 | 194.5 | 223.4 |
type_text | 14 | 269.9 | 295.8 |
key | 14 | 222.5 | 237.2 |
scroll | 14 | 193.7 | 212.5 |
drag | 14 | 250.3 | 303.6 |
set_text | 14 | 2204.0 | 2217.1 |
set_text goes through UI Automation and takes about 2.2 s each time. That is what drives the overall p95. With 14 or 15 samples per operation, the p95 sits near the largest sample and is not a stable estimate. Treat these as one measurement, not a guarantee.
Idle Use
A daemon with one open session and one app, no viewer, over 60 seconds: 78 ms of CPU (0.13% of one core), 39.5 MB working set, 11 threads. The daemon captures nothing unless a client asks.
A Leak the Detector Found
During development the detector found a real leak: UI Automation SetValue called from a thread on your own desktop injected 2 keyboard events per call into the host. backdesk now runs UI Automation set_text and invoke on a thread joined to the agent desktop, and the later count was 0. This is why the detector exists. See recovery for other tested behavior.
Other Results on the Same Machine
- Build with warnings as errors: 0 warnings, 0 errors.
dotnet format --verify-no-changesclean. - Unit tests: 70 passed. Desktop integration tests on a real hidden desktop: 49 passed, 1 skipped (the real takeover switch).
- Core line coverage reported by the builder at milestone 1: 82.6%. It was not measured again.
Not Measured
- Pass rate. The run file records latencies and isolation counters. It has no field for operation failures, so no pass rate is claimed here.
- Unresolved failures: the LibreOffice Calc window that did not appear for over 60 s, twice, while other suites ran. Not reproduced since, cause unknown (limitations).
- Any other machine, edition, DPI setup or monitor layout.
- Competitor comparison: none was run. The six projects on the compare page were read, not executed, and their published numbers (for example one project's 1,536-operation run) are their authors' claims that were not reproduced. A fair comparison would need the same workload, the same hardware and each project installed and run, and that was not done.