Benchmarks

Real measurements of Cefrium against the other ways to put web content in an Android app -- the system WebView, Mozilla GeckoView, Chrome Custom Tabs and Tauri. The same pages on every engine, on two real devices, with the harness and scripts published so you can reproduce them.

The honest summary: on a plain page, on the W90, Cefrium uses 2.5x the RAM of the system WebView, 1.1x that of Chrome in a Custom Tab, and 0.8x that of GeckoView. The WebView is lighter because the device already runs its engine; Cefrium carries its own pinned Chromium and a real multi-process model. In return it is the only one that is embeddable AND its own Chromium AND offers off-screen rendering AND full request interception.

Method

RAM (PSS MB, lower is lighter)

EngineW90
document
W90
modern-web
Redmi
document
Redmi
modern-web
EmbeddableOSR
System WebView156279157205YesNo
Tauri 2.12.5168288193216NoNo
GeckoView 159492634528562YesNo
Custom Tabs (Chrome)361493376403NoNo
Cefrium 0.17.0392475387438YesYes

Median of 6 samples per cell, zero app crashes during sampling. Cefrium is the only embeddable Chromium with off-screen rendering.

Tauri on Android ships no engine of its own: it renders in the device's system WebView, the same engine as the System WebView row, plus its Rust runtime. It is an app framework, not a view you embed in an existing native app, and like any WebView it has no off-screen-rendering path.

Alternatives without a standard Android embedding path

Two engines often raised as lighter alternatives have no measured row here, for an honest reason rather than an omission:

Cefrium samples (per-app RAM)

RAM of the Cefrium sample apps loading their own content, for reference (PSS MB):

AppTABWEE W90Redmi Note 13 Pro / HyperOS
java-sample (browser)502384
Kiosk POS553412
Kiosk automotive408368
modern-web showcase374389

Measured the same way as the table above: every process of the app, summed. A large part is the engine binary (libcef.so), memory-mapped from the file: shared between Cefrium's processes and reclaimable under pressure, not heap growth.

Crash stability (OEM matrix)

Launch the same app 10 times and read, after each launch, Android's own record of why each of its processes ended (dumpsys activity exit-info). A single launch hides intermittent OEM behavior; HyperOS in particular is aggressive with memory.

DeviceLaunchesApp deathsCrashes (any process)Low-memory kills
TABWEE W9010000
Redmi Note 13 Pro / HyperOS10000
No process of the app crashed on either device, and the app never died. Under memory pressure HyperOS can still reclaim a renderer; Cefrium reports that through onRenderProcessTerminated (below) and the app stays up.

Memory is bounded, not leaking

A long-lived embedder opens and closes many pages. The risk is that each closed page leaks its renderer. We drive a 30-navigation loop through a pool that keeps at most 2 browsers alive (each new page evicts the least-recently-used one) and read the engine's exact counters afterwards.

DeviceNavigationsBrowsers closedLive browsersRender framesVerdict
TABWEE W90302922bounded
Redmi Note 13 Pro / HyperOS302922bounded
After 30 page loads, only the 2 pooled browsers and their renderer frames remain -- every evicted page closed and freed its renderer. This deterministic counter check gates every release: a build that leaks closed renderers cannot ship.

Renderers die gracefully (your app does not)

On aggressive OEM skins the system can kill a background renderer to reclaim memory. Cefrium surfaces that to the app through a public onRenderProcessTerminated callback, so the embedder can show a reload affordance instead of a blank page. We validated it end-to-end: kill the live renderer, the callback fires with an out-of-memory status, the app stays up. (This needed an engine fix -- the upstream handler only mapped desktop termination reasons and silently dropped Android's low-memory-kill status.)

Off-screen rendering (the capability the others lack)

Cefrium can render a page to a raw pixel buffer in your process (OnPaint) -- for screenshots, PDF, headless capture, custom compositing, or surfaces no View can reach. System WebView, GeckoView and Custom Tabs expose no pixel-buffer / off-screen API at all -- a category Cefrium owns outright.

Measured off-screen cold first paint (process start -> first frame with the modern-web page): 2.3 s on the W90 and 3.0 s on the Redmi. That includes starting the engine and the renderer; the page load itself starts at 1.4 s and 0.8 s. The other engines have no number here because they cannot render off-screen at all.

Cefrium OnPaint output shown in a plain ImageView

Verified on device: Cefrium rendering a page into a raw BGRA buffer via OnPaint and drawing it into an ordinary Android ImageView (no SurfaceView, no WebView) -- the on-screen stats show the first frame and its non-white pixel count. The other three engines cannot do this.

Reproduce it yourself (traceability)

The whole harness is open in the cefrium-sample repo under benchmark-suite/: the matched per-engine apps, the profiler, the crash matrix, the leak check, and the result CSVs behind this page. One command per device runs all of it, and the tables above are generated from its output.

# Build every harness against a release, install, and measure (one device)
benchmark-suite/run-benchmarks.sh -s <serial> -r 0.17.0

# Fill this page's tables from the results of both devices
benchmark-suite/bench-page.py results/0.17.0 benchmarks/index.html

Measured on Cefrium 0.17.0. Numbers are PSS medians and will shift with the page, the device, and the engine versions; the scripts are the source of truth, not these snapshots.