← Back to the story

Performance & Engineering

Everything we measured, and how we measured it.

Every figure on this page has a version, a date, conditions and a sample. We do not present tests run under different conditions as A/B comparisons, and we do not publish figures we could not verify.

End-to-end latency · long real session

232 msp50
371.2 msp95
648.4 msp99
99.2%2,694 / 2,717

Apple M2, 7.3-hour real game session, v0.1.3. Translator DeepL (quality-optimised model), language pack off, early translation on, 20 fps, 4 OCR threads. Measured span: from the first captured frame showing the subtitle to the translation being handed to the displays, by the software.

Not included: network transfer to the TV, the TV’s drawing, physical display lag, and the wait between the subtitle appearing in the game and the first captured frame (median upper bound 100 ms). Median over the last 512 lines; tail values over the last 394 lines, independently recomputed.

In the same session 2,717 subtitle lines were recognised and 2,694 of them had their translation shown (99.2%). This is a translation completion rate: it is neither OCR accuracy nor the share of all in-game subtitles that were captured.

The stages of one line

Stage medians from the same session (394 lines). Stages overlap, so they cannot be summed into a line latency. The verification read runs in parallel and is not on the critical path.

  • p50
  • Verification read (parallel)
p50 · v0.1.3 · Apple M2 · 394
Show as table
p50Verification read (parallel)
Frame delivery0.85 ms—
First-frame OCR36.4 ms—
First read → early DeepL request0.26 ms—
DeepL wait191 ms—
Presentation0.04 ms—
Verification read (parallel)—50.3 ms

The early DeepL request went out for 93% of lines (368). In all 368, DeepL answered after verification had finished.

Current real-video tests · experimental Online Learning

Late November 2026, development build (unreleased). A game cutscene video played full screen and captured live; Online Learning on. End-to-end for uncached lines, software-measured.

  • p50
  • p95
  • p99
p50 / p95 / p99 · uncached end-to-end · software-measured
Show as table
p50p95p99
E · 29 min · 631 lines289 ms440 ms664 ms
F validation · 10 min · 199 lines278 ms433 ms653 ms
G validation · 6 min · 126 lines269 ms382 ms451 ms
D holdout · 98 lines276 ms398 ms437 ms

One game, one video. Sections differ, so runs are not A/B comparisons of each other. CPU p50 53–61%; memory (RSS) p50 107–121 MB.

Recognition: false accepts and accuracy

The same real OCR reads were replayed through three recognition versions: stable → previous experimental → new. Missed lines stayed the same across all three versions in every recording.

  • Stable
  • Previous
  • New
false accepts · same real reads replayed
Show as table
StablePreviousNew
E · 29 min12 5 0
F retest5 1 0
F validation3 1 0
G validation0 0 0

Independent validation sections: precision 0.994 / recall 0.995 on F (199 lines), 1.000 / 1.000 on G (126 lines).

Honest note: on synthetic, still, subtitle-like signs the new rules did worse (16 → 32 of 42 accepted). Coverage is one game and one video.

Android TV link

LAN transfer only: from the line being ready on the Mac to being decrypted and parsed on the TV side. The TV side was the TV app’s own Java protocol code in a desktop JVM over loopback; the TV’s ping reply was delayed 110 ms to simulate Wi-Fi sleep. This is not total translation latency.

  • Before
  • After
p99 & max · LAN transfer only · loopback, simulated 110 ms Wi-Fi sleep · log scale
Show as table
BeforeAfter
p99 · 5/s · n=15077.1 ms1.24 ms
p99 · 10/s · n=300101 ms1.18 ms
p99 · 20/s · n=40074.8 ms0.98 ms
max · 5/s94.8 ms1.35 ms
max · 10/s118 ms1.69 ms
max · 20/s121 ms1.94 ms

A separate real-network test (real Mac → real Google TV, ICMP): round trip after 1 s of silence median 61 ms (n=30); with keep-awake traffic every 100 ms, 3.0–7.2 ms (25/25). The gain on a real TV with the app’s own traffic was not measured.

Language pack, cache and OCR benchmarks

500,000-line synthetic pack, Apple M2, 18 Nov 2026 (n=20,000 lookups). Hit p50 11.1 µs, p99 34.8 µs; miss p50 18.0 µs; remembered lookup 0.3 µs. A miss adds p50 21.6 µs before the DeepL request starts.

  • p50
  • p99
500k-line pack · Apple M2 · n=20,000 · synthetic
Show as table
p50p99
Hit11.1 µs34.8 µs
Miss18 µs—
Remembered0.3 µs—

Pack accuracy (a 133k-row game pack): 99.93% correct on lines as written, 0 false positives (n=20,000). 88.08% found with one random misread letter. 0 false matches on 3,767 lines with the negation removed. Not tested in a real game.

PP-OCRv5 mobile, ONNX Runtime, 4 threads, synthetic subtitle frames, 300 iterations (Apple M2): total per frame p50 28.6 ms, p95 48.5 ms, p99 49.5 ms. Detection p50 10.1 ms, recognition p50 18.8 ms. Model load 154 ms, memory 67.7 MB. In a real game session (v0.1.3) first-frame OCR p50 was 36.4 ms.

  • p50
  • p95
  • p99
PP-OCRv5 mobile · ONNX Runtime · 4 threads · 300 iterations · synthetic
Show as table
p50p95p99
Detection10.1 ms——
Recognition18.8 ms——
Total28.6 ms48.5 ms49.5 ms

Reliability and tests

684 / 0passed / failed · 2026-11-26
1,103 / 1,105v0.2.2 · synthetic videos
0.13%CER · v0.2.2
157 MB438 min

Full test suite on the main line: 684 passed, 0 failed (26 Nov 2026). Library tests on the experimental branch: 513 passed, 1 ignored (27 Nov 2026).

Version comparison (v0.2.2): 1,105 real subtitle lines rendered onto 6 synthetic videos, real OCR and a mock translator: 1,103 lines captured, 0 false positives, character error rate 0.13%. First visible frame → confirmed p50 127 ms, p95 197 ms; → translation shown p50 260 ms (with the mock translator).

Memory: 157 MB at the end of a 438-minute session; 154–168 MB across versions. Memory does not grow with session length. Latency drift over a long session was not measured.

Method and limits

  • All latency figures are measured by the software.
  • Latency is not the same for every line: it can vary with how fast DeepL’s servers respond at that moment and with your internet connection.