Dispatch is a small desktop app. It lists the runs I delegate to coding agents, shows their transcripts as they stream in, and lets me tune how tasks get routed. It is a few tables, a sidebar, some popovers, and a terminal-style log. Shipped on Electron, it weighed 388 MB on disk and kept four processes alive just to sit there.
That gap between what the app does and what it costs is what pushed me to rewrite its interface in GPUI, the Rust UI framework the Zed editor is built on. Once the rewrite looked the same as the Electron version, I wanted numbers instead of impressions, so I measured both.
Why leave Electron
Electron is a very reasonable default. You get the web platform, its tooling, and a design system you can share with a website. The price is that every app ships its own Chromium, and every window brings a browser's process model with it: a main process, a renderer, a GPU process, and a network service. For a tool I keep open all day next to an editor, a few terminals, and the agents themselves, that baseline started to feel like the wrong trade.
GPUI goes the other way. It is a Rust library that draws the whole interface on the GPU through Metal, with no DOM, no JavaScript engine, and no separate renderer process. The app is one native binary. What you give up is the web's ecosystem: there is no built-in text input, no CSS, and much less prior art for components.
The constraint I set myself was that the switch could not change the product. Dispatch talks to a local Go core over Connect-JSON, and the GPUI app talks to the exact same core in the exact same way. Only the interface moved. The design system did not change either: its tokens were mirrored from the same DESIGN.md the Electron app follows, and screens were compared against the Electron version pixel by pixel until the remaining differences were sub-point rounding.

I also tried a third-party component kit built on a pre-release fork of GPUI. It gave me IME, undo, and popover positioning for free, but it tied the app to two more moving dependencies and shifted the layout by a point here and there. I went back to the official gpui crate and wrote the few behaviors I actually needed myself, with tests: a panel that flips above its trigger when it does not fit below, undo and word movement in the text field, and Escape that closes the popover holding a field.
How I measured
I wanted both apps to go through the same motions, driven from outside, with nothing in either app that knew it was being measured. So I wrote a small Swift tool that launches an app, watches the window server for its first window, and captures that window until its pixels stop changing. It then posts real mouse clicks and scroll events, the same ones a person would produce.
Each round:
- starts a fresh instance of the app from its binary, with the same 1200×800 window;
- records when the window appears and when the screen stops changing;
- waits, then samples memory and CPU for 30 seconds of idle;
- clicks through four pages in the sidebar and scrolls a long table up and down;
- samples memory and CPU again.
Memory is phys_footprint from macOS's footprint tool, summed over every process the app owns, which is what Activity Monitor reports. CPU is the processes' accumulated CPU time divided by wall time, so 100% means one full core. I ran three rounds per app, alternating between them, against the same core and the same data. The rounds agreed closely: only memory after use moved by more than a few percent between them.
The numbers
These are the medians of three rounds per app.
| Electron | GPUI | Difference | |
|---|---|---|---|
| App size on disk | 388 MB | 16 MB | ~11× smaller, counting the 18 MB core in both |
| Processes | 4 | 1 | |
| Window appears | 0.86 s | 0.42 s | 2× faster |
| Screen ready | 1.17 s | 0.52 s | 2.3× faster |
| CPU spent launching | 3.3 s | 1.2 s | 2.6× less |
| Memory at idle | 517 MB | 128 MB | 4× less |
| Memory after use | 976 MB | 255 MB | 3.8× less |
| CPU at idle | 111% | 28% | 4× less |
| CPU navigating and scrolling | 180% | 51% | 3.5× less |
| CPU scrolling a long table | 179% | 63% | 2.8× less |
On Electron, most of the weight sits in the GPU process and the renderer, which together reached about 900 MB after the workload. On GPUI, everything lives in one process that ended at 255 MB.
The idle numbers deserve a footnote, because neither app was truly idle. The sidebar shows an animated bot for every run in progress, and both apps redraw continuously while those animations play. That is also the clearest thing left to fix on the GPUI side: it draws the bots on the CPU and repaints the whole window every frame, even on a page whose content is static. Even so, it spends a quarter of what Electron spends on the same animation.
What this does and does not show
The result is consistent across every metric I took: the GPUI version of the same app, showing the same data from the same core, uses about a quarter of the memory and CPU and opens about twice as fast. For an app that stays open all day, that is the difference between a background tool and a background cost.
There are limits, and I want to be clear about them. I did not measure frame rate or input latency, because both apps sync to the display and I could not count frames from outside. I did not measure energy, which needs elevated permissions. All launches were warm, not the first launch after a reboot. And the GPUI version is not finished yet: a few components are still hand-made and some are not ported, so its numbers will grow a little as it reaches full parity. This is one app compared with itself, not a general verdict on Electron.
Still, the gap is large enough that I am moving the rest of my desktop apps the same way, with the interface components pulled out into a shared GPUI library.
.png)