Benchmarks Desktop
Tauri vs Electron
Every candidate on one rig, from the same samples. Winners come from the numbers alone; the story is in the post.
IPC across the boundary
Winner Tauri (15.2 ms)
Test 1 Idiomatic 1 KB
Median round trip of a 1 KB JSON payload of seeded rows, frontend to host and back, on the path each shell's docs recommend. The value is the median pooled over every batch sample of every pass.
4 passes per candidate; the whisker spans the per-pass values.
Test 2 Idiomatic 64 KB
Median round trip of a 64 KB JSON payload of seeded rows, frontend to host and back, on the path each shell's docs recommend. The value is the median pooled over every batch sample of every pass.
4 passes per candidate; the whisker spans the per-pass values.
Test 3 Idiomatic 1 MB
Median round trip of a 1 MB JSON payload of seeded rows, frontend to host and back, on the path each shell's docs recommend. The value is the median pooled over every batch sample of every pass.
4 passes per candidate; the whisker spans the per-pass values.
Test 4 Idiomatic 16 MB
Median round trip of a 16 MB JSON payload of seeded rows, frontend to host and back, on the path each shell's docs recommend. The value is the median pooled over every batch sample of every pass.
4 passes per candidate; the whisker spans the per-pass values.
Test 5 Raw 1 KB
Median round trip of 1 KB of seeded bytes on the shell's bytes path: Tauri raw request and response, Electron Uint8Array over invoke. The value is the median pooled over every batch sample of every pass.
4 passes per candidate; the whisker spans the per-pass values.
Test 6 Raw 64 KB
Median round trip of 64 KB of seeded bytes on the shell's bytes path: Tauri raw request and response, Electron Uint8Array over invoke. The value is the median pooled over every batch sample of every pass.
4 passes per candidate; the whisker spans the per-pass values.
Test 7 Raw 1 MB
Median round trip of 1 MB of seeded bytes on the shell's bytes path: Tauri raw request and response, Electron Uint8Array over invoke. The value is the median pooled over every batch sample of every pass.
4 passes per candidate; the whisker spans the per-pass values.
Test 8 Raw 16 MB
Median round trip of 16 MB of seeded bytes on the shell's bytes path: Tauri raw request and response, Electron Uint8Array over invoke. The value is the median pooled over every batch sample of every pass.
4 passes per candidate; the whisker spans the per-pass values.
Test 9 Push inter-arrival p99
Host emits 1024 B events at 1000 per second for 10 s over the idiomatic event path; the p99 gap between arrivals on the frontend.
Mean of 4 passes per candidate; the whisker spans the fastest and slowest pass; the lead over Tauri is inside the noise.
Webview parity
Winner Tauri (3.43 ms)
Test 1 Table frame p99
99th percentile interval between animation frames during the table test, mean over passes.
Mean of 5 passes per candidate; the whisker spans the fastest and slowest pass.
Test 2 Table step time
Main-thread time inside the table test's per-frame step, which vsync cannot hide: each pass's mean over its frames, then the mean over passes, a mean of means and not a p50 despite the id, because WKWebView reports time in whole milliseconds and a per-frame median collapses to 0 or 1.
Mean of 5 passes per candidate; the whisker spans the fastest and slowest pass.
Test 3 Particles frame p99
99th percentile interval between animation frames during the particles test, mean over passes.
Mean of 5 passes per candidate; the whisker spans the fastest and slowest pass.
Test 4 Particles step time
Main-thread time inside the particles test's per-frame step, which vsync cannot hide: each pass's mean over its frames, then the mean over passes, a mean of means and not a p50 despite the id, because WKWebView reports time in whole milliseconds and a per-frame median collapses to 0 or 1.
Mean of 5 passes per candidate; the whisker spans the fastest and slowest pass.
Test 5 Raster frame p99
99th percentile interval between animation frames during the raster test, mean over passes.
Mean of 5 passes per candidate; the whisker spans the fastest and slowest pass.
Test 6 Raster step time
Main-thread time inside the raster test's per-frame step, which vsync cannot hide: each pass's mean over its frames, then the mean over passes, a mean of means and not a p50 despite the id, because WKWebView reports time in whole milliseconds and a per-frame median collapses to 0 or 1.
Mean of 5 passes per candidate; the whisker spans the fastest and slowest pass.
Lifecycle
Winner Electron (1.10 s)
Test 1 Cold start
Launch command to first animation frame after the OS file cache was purged, median of 20.
Median of 20 passes per candidate; the whisker spans the fastest and slowest pass.
Test 2 Warm start
Same measurement immediately after a prior launch, median of 10.
Median of 10 passes per candidate; the whisker spans the fastest and slowest pass.
Test 3 Footprint over soak
Attributed memory averaged over the ten-minute soak, after the first five seconds, averaged over soaks.
Mean of 3 passes per candidate; the whisker spans the lowest and highest pass; the lead over Tauri is inside the noise.
Test 4 Footprint peak
Highest attributed memory sampled during the soak, mean over soaks.
Mean of 3 passes per candidate; the whisker spans the lowest and highest pass; the lead over Tauri is inside the noise.
Size
Winner Tauri (2.54 MB)
Test 1 Installer
Bytes of the default build's installer.
One measurement per candidate.
Test 2 Installed
Bytes on disk after install and first launch.
One measurement per candidate.
Test conditions: rig, corpus, protocol
- Machine
- Mac14,6
- Chip
- Apple M2 Max
- Cores
- 12
- Memory
- 96 GB
- OS
- macOS 26.6.2 (25G83) (arm64)
- Runtime
- bun 1.4.0
- Browser
- Tauri: 21624.5.1.11.3; Electron: Chromium 152.0.7977.78
- Display
- Resolution: 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition); UI Looks like: 3840 x 2160 @ 60.00Hz; Resolution: 3456 x 2234 Retina
- Warmups
- 5 unmeasured passes
- Measured
- 4 passes per tool
- Process
- Apps launched open -n -W (LaunchServices) so the app is its own responsible process, with --disable-backgrounding-occluded-windows --disable-renderer-backgrounding passed to both shells (Chromium honors them, WKWebView has no equivalent and keeps rendering when covered); candidates interleaved A B / B A pass by pass; 20 cold and 10 warm starts, 4 IPC passes (the protocol's runs) of 50 samples per cell, each cell after 5 warmup samples (the protocol's warmups count samples in a cell, not passes), with small payloads batched to cover the webview's timer resolution, 5 parity passes of 600 frames, 3 ten-minute soaks; a conformance gate with byte-identical digests on both hosts precedes every run
- Cache
- OS file cache purged before every cold start; nothing purged before warm starts
- Output
- FIRST_FRAME marker on the host's stdout timed against the launcher's wall clock; frontend performance.now() for round trips and frames; macOS: physical footprint (phys_footprint, as Activity Monitor's Memory column) summed over every process whose responsible process is the app, which includes WKWebView's WebContent, Networking and GPU helpers for the Tauri candidate and every Electron helper for the Electron candidate; read with /usr/bin/footprint.
Scorecard
| Candidate | IPC across the boundary (ms, lower is better) | Webview parity (ms, lower is better) | Lifecycle (s, lower is better) | Size (MB, lower is better) |
|---|---|---|---|---|
| Tauri | 15.2 | 3.43 | 1.13 | 2.54 |
| Electron | 31.2 | 5.80 | 1.10 | 121.39 |
Tauri is a trademark of the Tauri Programme within The Commons Conservancy; the tauri crates and CLI are MIT or Apache-2.0. Electron is a trademark of the OpenJS Foundation; Electron is MIT-licensed. Chromium is a Google project, BSD-3-Clause.