Performance Benchmarks
470 words2 min read2 subsectionsFrom the README at ft 0.15.21
Benchmarks live under crates/frankenterm-core/benches/ (119 Criterion bench files) and use human-readable budgets with machine-readable artifacts. In the shared agent checkout, proof and closeout benchmark runs must go through RCH:
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 rch --no-self-healing exec -- env CARGO_TARGET_DIR=/tmp/ft-<bead>-bench-compile \
cargo bench -p frankenterm-core --benches --no-run # compile sanity check
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 rch --no-self-healing exec -- env CARGO_TARGET_DIR=/tmp/ft-<bead>-bench-pattern \
cargo bench -p frankenterm-core --bench pattern_detection
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 rch --no-self-healing exec -- env CARGO_TARGET_DIR=/tmp/ft-<bead>-bench-delta \
cargo bench -p frankenterm-core --bench delta_extraction
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 rch --no-self-healing exec -- env CARGO_TARGET_DIR=/tmp/ft-<bead>-bench-fts \
cargo bench -p frankenterm-core --bench fts_query
When a bench runs, it prints a [BENCH] {...} metadata line and writes:
target/criterion/ft-bench-meta.jsonl(budgets + environment)target/criterion/ft-bench-manifest-<bench>.json(artifact manifest)
Performance targets
| Operation | Target | Notes |
|---|---|---|
| Delta capture latency | <50 ms benchmark lane | Bounded 1 MiB overlap matching; 200-pane / target-class claims must cite the capture fairness proof artifact |
| Pattern detection | <1 ms per rule pack | Bloom prefilter rejection |
| FTS5 query | <10 ms | SQLite full-text search |
| Robot Mode response | <5 ms | JSON envelope generation |
| Context snapshot | <100 µs | Per-event environment capture |
| Memory per pane (hot) | ~200 bytes/line | Uncompressed in VecDeque |
| Memory per pane (warm) | ~40 bytes/line | 5:1 zstd compression |
For renderer-overhaul SLOs (resize FPS, input-to-photon, atlas stability, parity SSIM, idle GPU power), see docs/perf/resize-quality-slo.md (with machine-readable JSON). The upstream-of-render scheduler/reflow stage budgets live in docs/resize-performance-slos.md.
The sustained real-systems performance campaign for Mac keypress → LAN mux →
remote PTY → presented frame, live resize/zoom, and 4h/24h/72h aged sessions
lives in
docs/perf/mux-long-session-performance-campaign.md.
It explicitly separates core/headless proxy benches from live GUI, transport,
PTY, Metal, and display evidence; rejected hypotheses and their retry
predicates live in
docs/perf-ledger/interactive-systems-negative-results.md.
Interactive-performance negative-evidence ledger
Passing component benches is not permission to claim an interactive result. The following promotion gaps remain open at this source revision:
| Desired claim | Evidence currently missing | Promotion condition |
|---|---|---|
| Responsive Mac keypress → LAN mux → remote PTY → presented frame | No retained end-to-end native trace covering the input event, transport, PTY, render queue, GPU submission, and display presentation | Reproducible percentile traces on the declared LAN topology, with the exact build/config/workload retained |
| Smooth, visually correct resize and zoom | No retained live-GUI resize/zoom run couples frame pacing and CPU/GPU cost to image-quality/reflow checks | Signed native artifact with frame-time distributions, dropped-frame accounting, reflow correctness, and visual-differential evidence |
| M4/M5 Apple-silicon qualification | No non-skipped end-to-end interactive qualification artifact for either generation at this source revision | Repeat the declared interactive and aged-session matrix on each named chip; do not substitute a different Apple-silicon generation |
| Threadripper PRO 5995WX qualification | No retained end-to-end interactive trj result for the 64-core/128-thread host, including NUMA/scheduler/affinity evidence |
Repeat the matrix on the declared high-core-count AMD host with topology, affinity, clock, and workload provenance |
| Large ongoing-session responsiveness | Short synthetic/component lanes do not establish 4h/24h/72h behavior, post-parse RSS, or tail latency | Retained aged-session soaks with bounded workload, memory attribution, responsiveness percentiles, and failure/recovery evidence |
Reusing completed list_panes results is safe |
The former elapsed-time TTL cache was removed because full PaneInfo contains volatile focus/cursor/CWD/title/viewport/zoom state and elapsed time is not an authority revision |
Only reconsider coalescing when it is cross-client, cross-transport, in-flight-only, and bound to an authoritative mux revision/event stream |
Until those conditions are met, renderer SLO documents and component benches are targets and diagnostic substrates, not native M4/M5/Threadripper, LAN, resize/zoom, or long-session proof.