# FrankenTUI Performance Baseline & SLO Gate Report (2026-10-19) > Generated deterministically by `python3 -B scripts/render_perf_readme.py` from > [`docs/perf/regression_report_2026-10-19.jsonl`](regression_report_2026-10-19.jsonl), > [`docs/perf/bytes_report_2026-10-19.json`](bytes_report_2026-10-19.json), and > [`docs/perf/alloc_report_2026-10-19.json`](alloc_report_2026-10-19.json). ## Provenance & Measurement Environment - **Run ID:** `20261019T180822-3987005` - **Timestamp:** `2026-10-19T18:08:23-04:00` - **Platform:** Linux `x86_64` - **Toolchain:** `rustc 1.95.0-nightly (7f99507f5 2026-02-19)` (`rust-toolchain.toml`) - **Profile:** Workspace `release` (`opt-level = "z"`, `lto = true`, `codegen-units = 1`, `panic = "abort"`) - **Summary:** `total=27 passed=27 failed=0 skipped=0 incomplete=0` ## Enforced Baseline Thresholds (27 / 27 Passing) | Category | Criterion / Scene ID | SLO Metric | Observed | 95% CI | Budget / Ceiling | Delta % | Status | |---|---|---|---|---|---|---|---| | `frame_render` | `pipeline/truecolor/diff_and_present/full/80x24@5%` | `render_frame_p99_us` | `17.74 µs` | `[16.63 µs, 19.69 µs]` | `2.00 ms` (+10%) | `-99.11%` | **PASS** | | `layout_computation` | `layout/flex_split/horizontal/10` | `layout_compute_p99_us` | `131.7 ns` | `[118.8 ns, 150.0 ns]` | `20.00 µs` (+10%) | `-99.34%` | **PASS** | | `diff_strategy` | `diff/sparse_5pct/compute/80x24` | `diff_strategy_p99_us` | `3.01 µs` | `[2.56 µs, 3.59 µs]` | `200.00 µs` (+10%) | `-98.50%` | **PASS** | | `diff_strategy_large` | `diff/sparse_5pct/compute/200x60` | `diff_strategy_p99_us` | `17.47 µs` | `[15.52 µs, 19.83 µs]` | `800.00 µs` (+10%) | `-97.82%` | **PASS** | | `diff_200x60_sparse` | `diff/sparse_5pct_rows/compute_dirty/200x60` | `diff_sparse_200x60_p99_ns` | `12.12 µs` | `[11.69 µs, 12.95 µs]` | `84.00 µs` (+10%) | `-85.57%` | **PASS** | | `widget_render_block` | `widget/block/bordered/80x24` | `widget_render_p99_us` | `7.28 µs` | `[7.08 µs, 7.60 µs]` | `50.00 µs` (+10%) | `-85.44%` | **PASS** | | `widget_render_table` | `widget/table/render/10x3` | `widget_render_p99_us` | `70.32 µs` | `[66.58 µs, 76.65 µs]` | `120.00 µs` (+10%) | `-41.40%` | **PASS** | | `ansi_emit` | `present/truecolor/sparse_5pct/present/80x24` | `ansi_present_p99_us` | `19.45 µs` | `[16.47 µs, 23.39 µs]` | `400.00 µs` (+10%) | `-95.14%` | **PASS** | | `buffer_new_80x24` | `buffer/new/alloc/80x24` | `buffer_alloc_p99_us` | `933.5 ns` | `[877.6 ns, 1.02 µs]` | `20.00 µs` (+10%) | `-95.33%` | **PASS** | | `buffer_new_200x60` | `buffer/new/alloc/200x60` | `buffer_alloc_p99_us` | `5.62 µs` | `[4.83 µs, 6.64 µs]` | `80.00 µs` (+10%) | `-92.97%` | **PASS** | | `cell_bits_eq` | `cell/bits_eq/equal` | `cell_compare_p99_us` | `0.665 ns` | `[0.564 ns, 0.747 ns]` | `10.0 ns` (+10%) | `-93.35%` | **PASS** | | `runtime_shutdown_latency` | `runtime/shutdown_latency/headless` | `runtime_shutdown_p99_us` | `1.64 µs` | `[1.41 µs, 1.90 µs]` | `5.00 ms` (+10%) | `-99.97%` | **PASS** | | `runtime_first_frame` | `runtime/first_frame/headless_80x24` | `runtime_first_frame_p99_us` | `94.71 µs` | `[77.36 µs, 111.22 µs]` | `10.00 ms` (+10%) | `-99.05%` | **PASS** | | `runtime_command_roundtrip` | `runtime/command_roundtrip/cmd_msg` | `runtime_command_roundtrip_p99_us` | `92.1 ns` | `[83.1 ns, 105.7 ns]` | `500.00 µs` (+10%) | `-99.98%` | **PASS** | | `runtime_effect_queue_drain` | `runtime/effect_queue_drain/spawned` | `runtime_effect_queue_drain_p99_us` | `158.49 µs` | `[133.34 µs, 205.35 µs]` | `2.00 ms` (+10%) | `-92.08%` | **PASS** | | `text_width_non_ascii` | `text_width/non_ascii_corpus/cached` | `text_width_non_ascii_p99_ns` | `25.6 ns` | `[21.7 ns, 29.5 ns]` | `30.0 ns` (+10%) | `-14.83%` | **PASS** | | `text_width_non_ascii_uncached` | `text_width/non_ascii_corpus/uncached` | `text_width_non_ascii_uncached_p99_ns` | `87.2 ns` | `[76.9 ns, 99.1 ns]` | `130.0 ns` (+10%) | `-32.90%` | **PASS** | | `runtime_render_frame_headless_80x24` | `runtime/render_frame_headless_80x24/conformal_on` | `render_frame_p99_us` | `34.96 µs` | `[29.91 µs, 41.93 µs]` | `65.00 µs` (+10%) | `-46.22%` | **PASS** | | `virtualized_scroll_to_100k` | `virtualized/scroll_to/variable_fenwick/100000` | `virtualized_scroll_to_100k_p99_ns` | `16.1 ns` | `[14.6 ns, 18.2 ns]` | `1.00 µs` (+10%) | `-98.39%` | **PASS** | | `present_80x24_sparse` | `present/truecolor/sparse_5pct/present/80x24` | `present_p99_us` | `19.45 µs` | `[16.47 µs, 23.39 µs]` | `3.00 ms` (+10%) | `-99.35%` | **PASS** | | `present_120x40_sparse` | `present/truecolor/sparse_5pct/present/120x40` | `present_p99_us` | `39.86 µs` | `[37.29 µs, 43.55 µs]` | `6.00 ms` (+10%) | `-99.34%` | **PASS** | | `present_200x60_sparse` | `present/truecolor/sparse_5pct/present/200x60` | `present_p99_us` | `94.43 µs` | `[91.14 µs, 100.67 µs]` | `18.00 ms` (+10%) | `-99.48%` | **PASS** | | `input_parse_dispatch_event` | `input/parse_dispatch/mixed_event_stream/per_event` | `input_dispatch_p99_us` | `152.0 ns` | `[129.4 ns, 188.3 ns]` | `100.00 µs` (+10%) | `-99.85%` | **PASS** | | `wrap_200_lines` | `wrap/word/200_lines_80_cols` | `wrap_p99_us` | `829.34 µs` | `[789.81 µs, 880.56 µs]` | `2.00 ms` (+10%) | `-58.53%` | **PASS** | | `bytes_emitted_sparse_5pct` | `bytes:present/bytes/sparse_5pct/80x24` | `bytes_emitted` | `169 B` | - | `832 B` | - | **PASS** | | `frame_allocations_ascii_scene` | `allocs:ascii_dashboard_80x24` | `frame_allocs` | `0 allocs` | - | `0 allocs` | - | **PASS** | | `frame_allocations_unicode_scene` | `allocs:unicode_dashboard_80x24` | `frame_allocs` | `3 allocs` | - | `4 allocs` | - | **PASS** | ## Presenter Byte-Efficiency Audit (`CountingWriter`) Measured in `crates/ftui-render/benches/presenter_bench.rs` (`present_bytes` group) against the plan budget `bytes_emitted <= 8 * cells_changed + 64`: | Scene | Grid | Cells Changed | Change Runs | Bytes Emitted | Plan Budget (`8*cells+64`) | Bytes / Changed Cell | Within Budget | |---|---|---|---|---|---|---|---| | `present/bytes/sparse_5pct/80x24` | `80×24` | `96` | `3` | `169 B` | `832 B` | `1.76 B/cell` | `True` | | `present/bytes/sparse_5pct/120x40` | `120×40` | `240` | `4` | `319 B` | `1984 B` | `1.33 B/cell` | `True` | | `present/bytes/sparse_5pct/200x60` | `200×60` | `600` | `6` | `692 B` | `4864 B` | `1.15 B/cell` | `True` | ## Steady-State Frame Allocation Audit (`FrameArena` vs Heap) Measured in `crates/ftui-render/benches/alloc_count_bench.rs` (`--features alloc-count`) using a custom `#[global_allocator]` counting wrapper after 5 warm-up frames: | Scene | Mode | Heap Allocs / Frame | Heap Bytes / Frame | Arena Bump Bytes / Frame | Reduction | |---|---|---|---|---|---| | `ascii_dashboard_80x24` | `FrameArena` (`arena: true`) | **`0`** | **`0 B`** | `266,176 B` | **`100.0%` fewer heap allocs** | | `ascii_dashboard_80x24` | Heap (`arena: false`) | `1397` | `142,688 B` | `0 B` | baseline | | `unicode_dashboard_80x24` | `FrameArena` (`arena: true`) | **`3`** | **`42 B`** | `266,176 B` | **`99.5%` fewer heap allocs** | | `unicode_dashboard_80x24` | Heap (`arena: false`) | `661` | `79,962 B` | `0 B` | baseline | ### Residual Allocation Attribution (`unicode_dashboard_80x24`) - **`ascii_dashboard_80x24` (`arena: true`)**: **0 heap allocations / 0 bytes per frame** (down from 1,397 allocations / 142,688 bytes per frame without `FrameArena` — **100.0% elimination**). - **`unicode_dashboard_80x24` (`arena: true`)**: **3 heap allocations / 42 bytes per frame** (down from 661 allocations / 79,962 bytes per frame without `FrameArena` — **99.5% reduction**). The 3 residual allocations (14 bytes each = 42 bytes total) originate in `GraphemePool::intern` when interning newly composed multi-codepoint graphemes into the pool's `String` slot storage. ## Reproduction Commands ```bash # Run all 27 baseline checks and emit target/regression-gate/regression_report.jsonl ./scripts/perf_regression_gate.sh --quick --json # Validate JSONL schema python3 tests/e2e/lib/validate_jsonl.py target/regression-gate/regression_report.jsonl \ --schema tests/perf/regression_report_schema.json # Verify README.md and docs/perf/baseline_2026-10-19.md match the recorded report python3 -B scripts/render_perf_readme.py --check # Run synthetic decision & E2E gate tests ./scripts/check_perf_gate_decisions_e2e.sh ./scripts/perf_gate_e2e.sh ```