← Back to all posts

Electron, Tauri, Avalonia or Flutter? I built the same editor four times

I built the same translation editor in four desktop shells and measured them on Windows. The numbers tied, so here is how I chose.

I’m building a desktop translation tool, and before writing the real thing I had to pick a shell. As a frontend developer who lives in React, Electron was the obvious answer. That was exactly the problem: I wanted to know whether Electron really holds up for this kind of app, or whether I was just reaching for what I already know.

So I built the same prototype four times, in Electron, Tauri 2, Avalonia and Flutter, and measured all four on the same Windows laptop. Short version: all four met every latency target, Electron, Tauri and Avalonia ended in a technical tie, and Flutter came last because of the memory use of its editor library. In the end I picked Electron, and I’ll explain why at the end.

Everything I used is public: protocol, code and raw data are in cat-tool-study on GitHub.

What I’m building

A computer-assisted translation (CAT) tool splits a document into segments, usually sentences, and the translator works through them one by one. It sounds simple, but it’s a demanding desktop editor:

  • documents with up to 10,000 segments (the unit the translator works on, usually one sentence, shown next to its translation), in DOCX, XLSX and PPTX;
  • inline formatting tags (bold, links, line breaks) that have to behave as a single character, so the translator can’t break them by accident;
  • a live preview of the translated document, updated on every keystroke;
  • a translation memory to search while typing;
  • offline work, with a local database and a sync queue.

To keep myself honest, I wrote down the questions, the targets and the scoring weights before measuring anything, and I didn’t register a guess about who would win.

How I tried to keep it fair

The idea was simple: keep everything except the shell the same, so any difference would come from the shell and its text editor.

  • One specification, approved before any code: same layout (segment list on the left, preview on the right, 1440 × 900 window), same shortcuts, same tag behaviour.
  • One shared core in Rust for import, sentence splitting, database, search and export. Electron, Avalonia and Flutter run it as a separate process; Tauri calls it in-process.
  • The same functional tests, keyboard-driven, passing on all four: scrolling, tags, preview, saving, merge and split, search and compiled preview.
  • The same workload: an external program sends keystrokes through the operating system, following one script, with the same documents and translation memory, against production builds.
  • The same conditions: one laptop, random order on every repetition, ten repetitions with the first one thrown away.

Some things couldn’t be the same, and they matter:

Shell Version Segment editor
Electron 44.4.5 ProseMirror
Tauri 2 WebView2 158.0.4370.33 ProseMirror (same front end as Electron)
Avalonia 12.2.0 (.NET 10) a custom control written for the study
Flutter 3.50.1 Fleather 1.28.0

I didn’t use Avalonia’s commercial rich-text editor: its trial licence is for internal evaluation only, and I wanted to publish the results. So Avalonia got a control written from scratch.

My machine. Intel Core Ultra 7 255HX, 31 GB, Intel integrated GPU plus an NVIDIA RTX 5070 Laptop, 240 Hz screen, Windows 11. The main profile, which I called restricted, limits each app to 4 cores, 8 GB and the integrated GPU.

The documents. Every candidate opened the same files:

File Source Segments Size (MiB)
Small (.docx) synthetic 120 0.04
Medium (.docx) synthetic 1,200 0.07
Long (.docx) synthetic 3,600 0.12
Worst case (.docx) synthetic, tag-heavy 10,000 0.32
Complex layout (.docx) CMS-10569, US government 329 0.07
Long text (.docx) Moby Dick, public domain, converted from scanned text 5,424 0.28
Presentation (.pptx, 596 slides) private, content not published 1,718 476.09
Translation memory (1,750 .tmx files) DGT-TM, European Commission 51,769 pairs 558.92

The results

All numbers below come from the restricted profile (4 cores, 8 GB, integrated GPU). Ranges go from the document with the lowest value to the one with the highest. In every row, lower is better.

Measure (target) Electron Tauri Avalonia Flutter
Key to editor, p95, ms (< 16) 8.6–9.5 8.8–10.1 6.8–8.6 10.9–12.8
Confirm segment, p95, ms (< 50) 16.5–22.1 10.7–12.6 15.1–38.4 14.9–28.6
Merge and split, worst p95, ms (< 100) 34.4 23.1 32.3 33.3
Translation memory search, p95, ms (< 100) 14.9–23.5 11.9–13.4 13.3–21.3 13.7–24.3
Open 10,000 segments, median, ms (< 2,000) 656 483 1,117 595
Dropped frames while scrolling (< 5%) 0% 0% 0% 0%
Compiled document preview, p95, s (no target) 1.32–7.89 1.29–8.00 1.25–7.84 1.25–7.89
Memory, 3,600 segments open, MiB 275 264 231 345
Memory over 60 min of use, median, MiB 329 330 221 710
Memory growth, MiB/min 0.28 0.24 0.31 7.85
Installer, MiB 110.6 2.2 49.6 9.7

Bar ranges of p95 timings in the restricted profile, from the fastest to the slowest document, against dashed target lines. Typing and confirming a segment stay well under their targets in all four shells, search is under 25 ms everywhere, and the compiled preview takes 1.3 to 8 seconds in every shell.

Bar charts of memory and installer size. Avalonia uses the least memory over an hour, about 221 MiB, Electron and Tauri about 330 MiB, and Flutter 710 MiB with steady growth. Tauri has the smallest installer at 2.2 MiB, against 110.6 MiB for Electron.

What surprised me

Latency didn’t separate them at all. I expected typing speed to be the deciding factor. Instead, all 308 combinations of app, profile, document and measure with a target met it. The p95 for typing stayed between 6.8 and 12.8 ms everywhere, far from the 33 ms that would have eliminated a candidate.

The compiled preview measured LibreOffice, not the shells. Exporting the document and rendering a page took from 1.3 s to 8 s, almost identical across the four, because the conversion dominates. I left it out of the score.

Memory is where they actually differ. Avalonia used the least, about 221 MiB over an hour of use, against about 330 MiB for Electron and Tauri. Flutter kept growing, 7.85 MiB per minute. That turned out to be a memory leak in Fleather 1.28.0, the editor library, not in Flutter itself: three places in the library keep discarded editors alive. With three fixes applied, Flutter’s median dropped from 710 to 382 MiB with no continuous growth. The official result keeps the library as published, and Fleather’s authors haven’t reviewed the fixes.

Tauri’s installer is tiny, 2.2 MiB, because it uses the WebView2 runtime already on the system instead of shipping a browser engine. Electron ships Chromium and comes in at 110.6 MiB.

Where I’d be careful with these numbers

  • My screen is 240 Hz. My latency counts until the next frame. At 240 Hz, waiting for a frame takes at most about 4 ms; on a common 60 Hz laptop screen it can reach about 17 ms. I didn’t measure at 60 Hz, so read “under 16 ms” as a 240 Hz result.
  • A static screen made typing slower, and I still don’t know why. A fully static screen raised p95 typing latency in Electron, Tauri and Avalonia by about 5 to 12 ms, so some rounds ran with a small animation on screen. Under a static screen, 107 of 112 combinations still met their target, 4 were borderline and 1 missed (Tauri, 17.1 ms against 16). Real use looks more like the static case.
  • “Restricted” is still a fast machine. Four cores of a high-end laptop chip at full clock beat an entry-level work laptop.
  • Frames are timestamped inside each app, with each framework’s own mechanism, not at the screen.
  • I changed the protocol along the way, including a rule for discarding runs that I wrote after the first look at the data. Every change is dated and published with its reason.

The score, and why it’s a tie

The rules I registered beforehand turn each criterion into a score from 1 to 5. Higher is better.

Criterion (weight) Electron Tauri Avalonia Flutter
Performance (22%) 4.75 4.75 4.86 4.71
Memory (17%) 4 4 5 1
Format ecosystem (11%) 4 3 4 3
Installer (5%) 1 5 1 1
Total 4.03 4.19 4.38 2.89

The total covers only 55 of the 100 weight points. Two criteria weren’t scored in this round: editor consistency (28%), and implementation effort (17%), because I didn’t log hours.

Electron, Tauri and Avalonia are less than 10% apart, which my protocol defines as a technical tie. Across 60 variations of the calculation, Tauri came first in 36 and Avalonia in 24. The tie-break I registered is the heaviest criterion, editor consistency, which this round didn’t measure. The ecosystem score is also a judgement call: if Tauri gets the same 4 as Electron, since both can use the same JavaScript libraries, Tauri moves to first by 0.01.

So the measurements alone don’t pick a winner. I had to.

Why I chose Electron

With a tie on what I measured, the decision came down to what I didn’t measure: how much work is left in the editor, how predictable the platform is, and the fact that the app has to ship on macOS and Linux too. These reasons come from documentation and release notes, not from my benchmark.

  • The editor is the product. ProseMirror is a mature toolkit, with undo history, input composition and clipboard handling available out of the box. Avalonia’s good memory and latency came from a 347-line control written for the study: it handles typing, accented characters, clipboard and basic mouse selection, but has no undo, no accessibility support and no way yet to underline spelling errors. Finishing it is real work that the score never counted.
  • On Windows, Electron and Tauri run the same engine. WebView2 is Chromium, and both used the same front end, so the editor behaves the same in either. The difference is who controls the engine version: Electron ships a pinned Chromium with the app, while Tauri by default relies on the system’s WebView2, which updates on its own schedule.
  • One language from app to server. Electron’s main process is Node.js, so the desktop app and my backend can share the segment model, validation and sync code in TypeScript.
  • The sync engine is stable on Electron. I plan to use PowerSync for offline sync. Its Node.js SDK, which runs in Electron’s main process, is stable (1.0). The .NET SDK that Avalonia would use is in beta, and the native Tauri SDK is in alpha. Sync is the riskiest part of the app, so I want the most mature piece there.
  • macOS and Linux are where the shells really differ. Electron ships the same Chromium on all three systems, so ProseMirror behaves the same everywhere. Tauri uses the system’s web engine, which is WebKit on macOS and Linux, not Chromium. Avalonia draws its own interface, which keeps it consistent, but it is newer on Linux. Wayland is the display system replacing the decades-old X11 on modern Linux desktops such as GNOME and KDE. Electron has supported it natively since version 38.2; in Avalonia, native Wayland only left private preview in version 12.1, in July 2026, and Linux still defaults to X11. On top of that, a custom editor would need its own text input, accessibility and selection work on each system.

What I’m accepting in exchange: a 110.6 MiB installer, about 330 MiB of memory against Avalonia’s 221 MiB, and Electron’s release pace, with a new major version every eight weeks and only the latest three supported.

So yes, I ended up where I started. The difference is that now I know what I’m giving up.

Reproduce it, or tell me I’m wrong

Everything is in the repository: the pre-registration and its amendments, the measurement harness, the four apps and every raw CSV in results/. The protocol, specification and code comments are in Portuguese. The private presentation isn’t included; every other document can be regenerated or downloaded.

One disclosure: I did this with an AI agent. It wrote the code, ran the measurements and drafted the analysis, and I reviewed and approved every decision along the way. If you spot a mistake, open an issue.

← Back to all posts