EndoMint

McoreD's blog · Opinions are my own.

FerroUI vs GPUI, Same Machine, No Excuses

GUI Bench builds the same analytics dashboard in many GUI frameworks and measures app size and response time. FerroUI is a new Rust framework, version 0.6.0, and it was not in the bench. I built the dashboard in FerroUI and ran it, then ran GPUI on the same machine so the comparison is like for like. This post reports the head-to-head.

Method

Both frameworks ran on the same machine: an Intel i5-10600 (6 core, 12 thread), AMD GPU, 62 GB RAM, running Omarchy, with the powersave governor. Same runner, same scenarios, same row counts (30, 300, 1000, 3000), same flags, including --allow-noisy-host, which the runner needs on powersave. The only thing that changed was the framework. All response times are total_p50 medians in milliseconds at 144 Hz. Lower is better.

FerroUI is version 0.6.0 (ferroui-view, desktop feature). GPUI here is gpui-kit 0.11.0, the base GPUI entry in the bench. Note that the published GUI Bench numbers were run on the author's 24-core Ultra 7, so they are not directly comparable to these. These numbers are only comparable to each other, because they ran on the same machine.

The code is in the GUI Bench repo at https://github.com/McoreD/gui-bench (commit 4800360, "Add FerroUI 0.6.0 to the bench"). The FerroUI run is results/run-1796493930 (app) and run-1796495016 (list). The GPUI run is results/run-1796495890 (app) and run-1796496582 (list).

App size

FerroUI builds to 533.3 MB. GPUI builds to 430.2 MB. GPUI wins by 103.1 MB. Both are very large. FerroUI is the largest binary in the bench set. GPUI is large in its own right. If binary size matters to you, GPUI is the lighter of the two, but only by comparison.

Open the diagram on its own page

Cheap interactions: FerroUI wins

This is where the two frameworks split. On cheap per-element interactions, FerroUI is fast and stays fast as the row count grows. GPUI gets slower as the table grows.

ms 30 rows 300 rows 1000 rows 3000 rows
hover-nav, FerroUI 5.73 5.73 5.74 5.73
hover-nav, GPUI 7.76 26.54 75.19 205.40
hover-row, FerroUI 5.73 6.15 5.73 7.61
hover-row, GPUI 7.21 26.47 70.87 200.86
key-type, FerroUI 5.28 6.29 6.29 skipped
key-type, GPUI 6.32 19.60 47.96 132.19
click-sort, FerroUI 6.23 7.20 26.10 164.96
click-sort, GPUI 8.46 28.04 75.51 200.16

Hover over a nav item: FerroUI is 5.73 ms at every row count, flat. GPUI is 7.76 ms at 30 rows, 26.54 at 300, 75.19 at 1000, and 205.40 at 3000. At 3000 rows FerroUI hover is about 36 times faster.

Clicking the menu, compare toggle, and filter: FerroUI holds around 12 to 14 ms at 30 and 300 rows, rising to 13 to 34 ms at 1000 and 19 to 101 ms at 3000. GPUI is faster at 30 rows (8.46 to 8.94 ms) but degrades to 200 to 299 ms at 3000 rows. So GPUI wins these three only at 30 rows. FerroUI wins from 300 rows up.

Open the diagram on its own page

Whole-tree rebuilds: GPUI wins

When an interaction rebuilds a large part of the tree, GPUI is faster.

ms 30 rows 300 rows 1000 rows 3000 rows
key-search, FerroUI 8.90 33.61 98.98 308.26
key-search, GPUI 8.43 22.59 55.79 206.37
page-overview, FerroUI 12.26 67.75 244.25 skipped
page-overview, GPUI 12.22 29.57 80.45 213.57
page-messages, FerroUI 13.28 69.06 213.31 skipped
page-messages, GPUI 12.24 30.04 85.22 211.74

Key search, which filters the whole order list: GPUI is faster at every size. Switching to the overview page: GPUI is about 3 times faster at 1000 rows (80.45 vs 244.25 ms). Switching to the messages page: GPUI is again about 3 times faster at 1000 rows (85.22 vs 213.31 ms).

Startup: roughly a tie

Startup in milliseconds (content_ms): at 30 rows FerroUI 168.3, GPUI 155.2 (GPUI faster). At 300 rows FerroUI 225.1, GPUI 238.8 (FerroUI faster). At 1000 rows FerroUI 343.2, GPUI 461.0 (FerroUI faster by 118 ms). At 3000 rows FerroUI 725.0, GPUI 669.4 (GPUI faster). No consistent winner. Both get slower as the table grows.

Memory: GPUI wins

Idle memory, RSS max in MB: at 30 rows FerroUI 137.4, GPUI 107.7. At 300 rows 164.6 vs 124.7. At 1000 rows 231.5 vs 174.7. At 3000 rows 425.1 vs 318.0. GPUI is 30 to 107 MB lighter at every size.

List scenario

The virtual list scenario, 10,000 and 1,000,000 rows: hover over a row is FerroUI 5.73 ms at 10k and 5.74 at 1M, GPUI 8.17 at 10k and 5.72 at 1M (a tie at 1M). Click-sort is GPUI 7.21 ms at 10k vs FerroUI 8.46, and GPUI 22.23 ms at 1M vs FerroUI 96.85 (GPUI much faster, by 74.6 ms). Startup is GPUI faster (140.1 vs 182.9 at 10k; 141.4 vs 224.2 at 1M). Idle memory is GPUI lighter (100.8 vs 133.9 at 10k; 103.9 vs 181.4 at 1M).

Robustness at 3000 rows

GPUI completed the full matrix at 3000 rows with 0 failed measurements. FerroUI did not. At 3000 rows the FerroUI live measurement failed (the click to toggle live updates timed out), the cell went over budget, and page-messages, to-messages, page-overview, key-type and resize-messages were skipped. So GPUI is more robust at 3000 rows in that it finished, even though its individual hover and click numbers there are slower than FerroUI's.

Two caveats on the FerroUI side: the export menu is hand-built (FerroUI's declarative API has no MenuFlyout builder), so it plots with hollow markers, and the ToggleSwitches work but do not paint their track and knob in screenshots. GPUI has one flag too: its spinner only rotates SVG elements. These are inherent to each app, not measurement errors.

Why it is a split

FerroUI is fast at small, targeted updates. Hover, typing, sorting a column. Its signal model updates only what changed, so hover stays flat at 5.7 ms no matter how big the table gets. But when a whole page has to be rebuilt, like switching pages or filtering the full order list in a search, it has to reconstruct a large tree, and that is slow. Page switches go from 12 ms to 244 ms as the rows grow.

GPUI is the opposite. It is built for a code editor, so it is good at rebuilding large trees quickly. Page switches and search stay fast even at 1000 rows. It is also lighter on memory and binary size. But its hover gets slower as the tree grows, 7.76 ms at 30 rows to 205 ms at 3000 rows, which points to its hit testing walking the tree.

So neither one dominates. FerroUI wins the cheap per-element interactions, GPUI wins the big rebuilds, the memory, the size and the robustness. Which one is better depends on what the app does most. That is why it is a split, not a clean win.

Verdict: a genuine split

This is not a clean win for either framework, and it is much closer than the published ranking suggests. The published data had GPUI ranking higher overall, but that was on the author's Ultra 7. On this i5, that does not hold for the cheap interactions.

FerroUI beats GPUI on cheap per-element interactions: hover, key typing, click-sort, and clicks at larger sizes. It holds hover flat at about 5.7 ms while GPUI degrades to about 200 ms at 3000 rows. GPUI beats FerroUI on whole-tree rebuilds (page switches about 3 times faster, key search faster at all sizes), on memory (30 to 107 MB lighter), on binary size (103 MB smaller), on list click-sort at 1M rows, and on completing the full 3000-row matrix.

If your app is mostly small, cheap interactions on a big table, FerroUI is faster where it counts. If your app rebuilds large trees often, or you care about binary size and memory, GPUI is the better pick. Neither is the obvious default. Run both on your own machine and see which trade fits.