Linux in a Browser Tab: The Benchmarks Check Out, the Bandwidth Doesn't
Anyone shipping browser-based Linux will hit the same wall: the unkernel engine is CPU-fast, but the first-run experience is ruled by network jitter and Nix closure size. Until caching and CDN distribution are solved, this remains a demo for fast connections, not a replacement for local VMs.
trynix.dev presents a browser-based Linux VM powered by unkernel, a project that compiles the Linux kernel to WebAssembly instead of emulating it. The demo workloads, from xeyes to Firefox, run without a server, and the official bench figures show 2-32x speedups over the QEMU-wasm alternative. A hands-on test found those numbers hold up, but only after you get past a 9-minute download hurdle for the initial VM and dependency closure, thanks to a slow connection to the Nix cache.
The test exposed the split between CPU and network. The kernel itself downloads in under a second and compiles in 21ms on the official demo, but on a typical cloud host, pulling the 17 store paths for xeyes - including a 9.7MiB glibc - turned "fetching" into a 40-minute marathon. The second boot is dramatically faster because HTTP caching preserves most of the VM image. The bench table, run back-to-back on an EPYC server, shows ripgrep at 13.5x cold and 14.7x hot over QEMU, while python, a user-space-heavy workload, gets only 4.8x. The eye-catching 32x figure is historical, comparing the latest unkernel to an early QEMU version.
The design uses a Wayland compositor for GUI, virgl for OpenGL, and translates every TCP connection into a WebSocket through a Wisp relay, letting curl and git work inside the guest. Two quirks surfaced in release notes: an early clock bug skewed guest-reported benchmark times by 3.3x, and a missing entropy source caused a 50-second hang on first commands. The conclusion: the claims are real, but the convenience is capped by your bandwidth.
The 32x speedup number is a marketing artifact: it compares the latest unkernel to an early QEMU baseline. Back-to-back, the real advantage is 13.5x for ripgrep and below 5x for Python, which is still meaningful but not the headline.
Measuring performance with the guest's own clock is a trap; the release notes show that a 3.3x slowdown on the clock invalidated every 'guest-reported' benchmark until it was fixed. Any benchmark suite run inside a VM should use an external clock.
Routing every guest TCP connection over WebSockets through a relay is a clever design, but it adds a dependency on a third-party relay and an allowlist for domain access; that's a scalability question once many users run arbitrary network tools.