{ "_comment": "Performance baseline for FrankenTUI CI regression gate (bd-3fc.4).", "_format": "Criterion entries map a logical benchmark to a criterion name, with p50/p95/p99/p999 budgets in nanoseconds and an slo_metric for slo.yaml validation.", "_threshold": "Regression alert if observed mean exceeds baseline p99 by threshold_pct.", "_updated": "2026-07-20", "_presenter_color_depth": "truecolor", "frame_render": { "description": "Full frame render pipeline (diff + present, 80x24 @ 5% change)", "criterion_name": "pipeline/truecolor/diff_and_present/full/80x24@5%", "bench_file": "presenter_bench", "crate": "ftui-render", "slo_metric": "render_frame_p99_us", "p50_ns": 500000, "p95_ns": 1000000, "p99_ns": 2000000, "p999_ns": 5000000, "threshold_pct": 10 }, "layout_computation": { "description": "Layout constraint solver (Flex::split with 10 constraints)", "criterion_name": "layout/flex_split/horizontal/10", "bench_file": "layout_bench", "crate": "ftui-layout", "slo_metric": "layout_compute_p99_us", "p50_ns": 5000, "p95_ns": 10000, "p99_ns": 20000, "p999_ns": 50000, "threshold_pct": 10 }, "diff_strategy": { "description": "Diff computation (BufferDiff::compute on 80x24, 5% change)", "criterion_name": "diff/sparse_5pct/compute/80x24", "bench_file": "diff_bench", "crate": "ftui-render", "slo_metric": "diff_strategy_p99_us", "p50_ns": 50000, "p95_ns": 100000, "p99_ns": 200000, "p999_ns": 500000, "threshold_pct": 10 }, "diff_strategy_large": { "description": "Diff computation on 200x60 buffer (5% change)", "criterion_name": "diff/sparse_5pct/compute/200x60", "bench_file": "diff_bench", "crate": "ftui-render", "slo_metric": "diff_strategy_p99_us", "p50_ns": 200000, "p95_ns": 400000, "p99_ns": 800000, "p999_ns": 2000000, "threshold_pct": 10 }, "diff_200x60_sparse": { "description": "Diff computation on 200x60 buffer with tile prefilter (5% change)", "criterion_name": "diff/sparse_5pct_rows/compute_dirty/200x60", "bench_file": "diff_bench", "crate": "ftui-render", "slo_metric": "diff_sparse_200x60_p99_ns", "p50_ns": 21000, "p95_ns": 42000, "p99_ns": 84000, "p999_ns": 200000, "threshold_pct": 10 }, "widget_render_block": { "description": "Block widget render time (borders + title, 80x24)", "criterion_name": "widget/block/bordered/80x24", "bench_file": "widget_bench", "crate": "ftui-widgets", "slo_metric": "widget_render_p99_us", "p50_ns": 10000, "p95_ns": 20000, "p99_ns": 50000, "p999_ns": 100000, "threshold_pct": 15 }, "widget_render_table": { "description": "Table widget render time (10 rows x 3 cols, 120x40)", "criterion_name": "widget/table/render/10x3", "bench_file": "widget_bench", "crate": "ftui-widgets", "slo_metric": "widget_render_p99_us", "p50_ns": 30000, "p95_ns": 60000, "p99_ns": 120000, "p999_ns": 300000, "threshold_pct": 15 }, "ansi_emit": { "description": "ANSI emission (Presenter::present, 80x24 @ 5% change)", "criterion_name": "present/truecolor/sparse_5pct/present/80x24", "bench_file": "presenter_bench", "crate": "ftui-render", "slo_metric": "ansi_present_p99_us", "p50_ns": 100000, "p95_ns": 200000, "p99_ns": 400000, "p999_ns": 1000000, "threshold_pct": 10 }, "buffer_new_80x24": { "description": "Buffer::new(80, 24) allocation", "criterion_name": "buffer/new/alloc/80x24", "bench_file": "buffer_bench", "crate": "ftui-render", "slo_metric": "buffer_alloc_p99_us", "p50_ns": 5000, "p95_ns": 10000, "p99_ns": 20000, "p999_ns": 50000, "threshold_pct": 15 }, "buffer_new_200x60": { "description": "Buffer::new(200, 60) allocation", "criterion_name": "buffer/new/alloc/200x60", "bench_file": "buffer_bench", "crate": "ftui-render", "slo_metric": "buffer_alloc_p99_us", "p50_ns": 20000, "p95_ns": 40000, "p99_ns": 80000, "p999_ns": 200000, "threshold_pct": 15 }, "cell_bits_eq": { "description": "Cell::bits_eq branchless comparison (single cell pair)", "criterion_name": "cell/bits_eq/equal", "bench_file": "diff_bench", "crate": "ftui-render", "slo_metric": "cell_compare_p99_us", "p50_ns": 2, "p95_ns": 5, "p99_ns": 10, "p999_ns": 25, "threshold_pct": 10 }, "_runtime_section": "User-visible runtime benchmarks (bd-1vb19)", "runtime_shutdown_latency": { "description": "Time from quit signal to terminal cleanup complete", "criterion_name": "runtime/shutdown_latency/headless", "bench_file": "runtime_latency_bench", "category": "user-visible", "crate": "ftui-runtime", "slo_metric": "runtime_shutdown_p99_us", "p50_ns": 500000, "p95_ns": 2000000, "p99_ns": 5000000, "p999_ns": 10000000, "threshold_pct": 15 }, "runtime_first_frame": { "description": "Time from Program::run() to first frame rendered", "criterion_name": "runtime/first_frame/headless_80x24", "bench_file": "runtime_latency_bench", "category": "user-visible", "crate": "ftui-runtime", "slo_metric": "runtime_first_frame_p99_us", "p50_ns": 1000000, "p95_ns": 5000000, "p99_ns": 10000000, "p999_ns": 20000000, "threshold_pct": 15 }, "runtime_command_roundtrip": { "description": "Time from Cmd::msg() dispatch to model update completion", "criterion_name": "runtime/command_roundtrip/cmd_msg", "bench_file": "runtime_latency_bench", "category": "user-visible", "crate": "ftui-runtime", "slo_metric": "runtime_command_roundtrip_p99_us", "p50_ns": 50000, "p95_ns": 200000, "p99_ns": 500000, "p999_ns": 1000000, "threshold_pct": 10 }, "runtime_effect_queue_drain": { "description": "Time to drain effect queue after shutdown signal", "criterion_name": "runtime/effect_queue_drain/spawned", "bench_file": "effect_backend_bench", "category": "user-visible", "crate": "ftui-runtime", "slo_metric": "runtime_effect_queue_drain_p99_us", "p50_ns": 100000, "p95_ns": 500000, "p99_ns": 2000000, "p999_ns": 5000000, "threshold_pct": 15 }, "text_width_non_ascii": { "description": "Cached non-ASCII grapheme width lookup at steady state (per grapheme)", "criterion_name": "text_width/non_ascii_corpus/cached", "bench_file": "width_cache_bench", "crate": "ftui-core", "slo_metric": "text_width_non_ascii_p99_ns", "p50_ns": 23, "p95_ns": 28, "p99_ns": 30, "p999_ns": 50, "threshold_pct": 10 }, "text_width_non_ascii_uncached": { "description": "Uncached non-ASCII grapheme width lookup (per grapheme)", "criterion_name": "text_width/non_ascii_corpus/uncached", "bench_file": "width_cache_bench", "crate": "ftui-core", "slo_metric": "text_width_non_ascii_uncached_p99_ns", "p50_ns": 102, "p95_ns": 120, "p99_ns": 130, "p999_ns": 200, "threshold_pct": 10 }, "runtime_render_frame_headless_80x24": { "description": "Headless Program::step_headless_frame on 80x24 with default conformal frame-time risk gating", "criterion_name": "runtime/render_frame_headless_80x24/conformal_on", "bench_file": "render_frame_bench", "crate": "ftui-runtime", "slo_metric": "render_frame_p99_us", "p50_ns": 38000, "p95_ns": 55000, "p99_ns": 65000, "p999_ns": 100000, "threshold_pct": 10 }, "virtualized_scroll_to_100k": { "description": "Virtualized::scroll_to + offset_of_item on 100k variable-height items with Fenwick prefix tree", "criterion_name": "virtualized/scroll_to/variable_fenwick/100000", "bench_file": "virtualized_bench", "crate": "ftui-widgets", "slo_metric": "virtualized_scroll_to_100k_p99_ns", "p50_ns": 25, "p95_ns": 100, "p99_ns": 1000, "p999_ns": 5000, "threshold_pct": 15 }, "present_80x24_sparse": { "description": "ANSI emission on 80x24 buffer @ 5% change (plan budget p50 1ms / p99 3ms)", "criterion_name": "present/truecolor/sparse_5pct/present/80x24", "bench_file": "presenter_bench", "crate": "ftui-render", "slo_metric": "present_p99_us", "p50_ns": 1000000, "p95_ns": 2000000, "p99_ns": 3000000, "p999_ns": 6000000, "threshold_pct": 15 }, "present_120x40_sparse": { "description": "ANSI emission on 120x40 buffer @ 5% change (plan budget p50 2ms / p99 6ms)", "criterion_name": "present/truecolor/sparse_5pct/present/120x40", "bench_file": "presenter_bench", "crate": "ftui-render", "slo_metric": "present_p99_us", "p50_ns": 2000000, "p95_ns": 4000000, "p99_ns": 6000000, "p999_ns": 12000000, "threshold_pct": 15 }, "present_200x60_sparse": { "description": "ANSI emission on 200x60 buffer @ 5% change (plan budget p50 6ms / p99 18ms)", "criterion_name": "present/truecolor/sparse_5pct/present/200x60", "bench_file": "presenter_bench", "crate": "ftui-render", "slo_metric": "present_p99_us", "p50_ns": 6000000, "p95_ns": 12000000, "p99_ns": 18000000, "p999_ns": 36000000, "threshold_pct": 15 }, "input_parse_dispatch_event": { "description": "InputParser::parse per-event latency over mixed 1000-event stream (< 100us budget)", "criterion_name": "input/parse_dispatch/mixed_event_stream/per_event", "bench_file": "input_parser_bench", "crate": "ftui-core", "slo_metric": "input_dispatch_p99_us", "p50_ns": 20000, "p95_ns": 50000, "p99_ns": 100000, "p999_ns": 250000, "threshold_pct": 15 }, "wrap_200_lines": { "description": "wrap_text word-wrap on 200 lines at 80 columns (< 2ms budget)", "criterion_name": "wrap/word/200_lines_80_cols", "bench_file": "wrap_bench", "crate": "ftui-text", "slo_metric": "wrap_p99_us", "p50_ns": 500000, "p95_ns": 1000000, "p99_ns": 2000000, "p999_ns": 4000000, "threshold_pct": 15 }, "palette_corpus_1000_scan": { "description": "Command palette BayesianScorer::fast() scan over 1000-item corpus (p95 <= 5ms budget)", "criterion_name": "command_palette/score_corpus/palette_corpus_1000_scan", "bench_file": "widget_bench", "crate": "ftui-widgets", "slo_metric": "widget_render_p99_us", "p50_ns": 2500000, "p95_ns": 5000000, "p99_ns": 7500000, "p999_ns": 15000000, "threshold_pct": 15 }, "bytes_emitted_sparse_5pct": { "description": "ANSI bytes emitted on 80x24 @ 5% change (<= 8 * cells_changed + 64)", "kind": "bytes", "scene": "present/bytes/sparse_5pct/80x24", "budget_expr": "8*cells_changed+64", "bench_file": "presenter_bench", "crate": "ftui-render", "slo_metric": "bytes_emitted" }, "frame_allocations_ascii_scene": { "description": "Steady-state heap allocations per frame on 80x24 ASCII dashboard with FrameArena", "kind": "allocs", "scene": "ascii_dashboard_80x24", "budget": 0, "bench_file": "alloc_count_bench", "features": "alloc-count", "crate": "ftui-render", "slo_metric": "frame_allocs" }, "frame_allocations_unicode_scene": { "description": "Steady-state heap allocations per frame on 80x24 Unicode dashboard with FrameArena (<= 4 allocs, 99.4% below pre-arena 661)", "kind": "allocs", "scene": "unicode_dashboard_80x24", "budget": 4, "bench_file": "alloc_count_bench", "features": "alloc-count", "crate": "ftui-render", "slo_metric": "frame_allocs" } }