NewsCrawler.org

Rust GUI frameworks benchmarked by response time under a Wayland compositor

The benchmark app at 30 rows
Image: blog.zortax.de

The author replaces the internal timers of each framework, which define the end of a frame differently, with measurements taken from outside the apps. The new harness, fakeland, is a Wayland[1] compositor[2] that runs without a real screen, presents itself as a 1280×800 Dell monitor at 144 Hz, and runs each app unmodified. It injects real pointer, keyboard and scroll events and measures response time until the GPU finishes drawing the buffer, against a frame budget of 6.9 ms at 144 Hz.

The suite tests nine stacks, including zgui, GPUI, Freya, Vizia, Floem, Iced, egui, Dioxus Native and Tauri with SolidJS, plus tuned variants, for thirteen binaries in total. The table and message feed are tested with 30 to 3,000 unvirtualized rows, and a virtual list[3] up to one million rows. At 30 rows every framework launches in under half a second and responds to a hover in under 4 ms, while at one million virtual rows hover takes 0.7 ms (zgui) to 2.8 ms (Tauri). With thousands of live elements, egui adds 0.72 ms per thousand elements, and stock GPUI takes 11.7 ms for a hover at 3.5k elements.

Tuned GPUI builds show that caching the sidebar separately makes hovering it 20× faster, while hovering a table row gets no speedup because a row cannot be cached on its own. When a page switch replaces 3,000 rows, retained frameworks[4] pay more for setup and teardown, and egui is fastest there.

Repository GPUI github.com

A GPU-accelerated open-source UI framework for Rust that combines immediate and retained modes for building desktop interfaces.

Stars: 2,700Forks: 27Updated:

Read the original blog.zortax.deDiscussion

Discussion

Commenters mostly praise the effort and ask for more: adding Slint, Teksilo, rune and smaller projects, plus debug builds and accessibility tests. One commenter says Iced and Dioxus-skia stand out for smaller apps, and another argues that the examples of unvirtualized UIs are easy to virtualize. A question about which framework won overall got no answer, and the article names no single winner.

Sources

Published: First seen: Читать по-русски

Open as a page