From e8ba7f0f799718f3d5bcf015caa30e64a0432755 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Fri, 3 Jul 2026 02:22:59 -0400 Subject: [PATCH] Record A/B gate pass in findings log; add A/B result JSONs Co-authored-by: Orca --- notes/terminal-performance-initiative.md | 20 ++++++ ...ine-ab-perf1-2026-07-03T06-09-49-149Z.json | 62 +++++++++++++++++++ ...ine-ab-perf2-2026-07-03T06-12-09-101Z.json | 62 +++++++++++++++++++ ...e-ab-revive1-2026-07-03T06-10-47-352Z.json | 62 +++++++++++++++++++ ...e-ab-revive2-2026-07-03T06-13-42-518Z.json | 62 +++++++++++++++++++ 5 files changed, 268 insertions(+) create mode 100644 tools/benchmarks/results/terminal-pipeline-ab-perf1-2026-07-03T06-09-49-149Z.json create mode 100644 tools/benchmarks/results/terminal-pipeline-ab-perf2-2026-07-03T06-12-09-101Z.json create mode 100644 tools/benchmarks/results/terminal-pipeline-ab-revive1-2026-07-03T06-10-47-352Z.json create mode 100644 tools/benchmarks/results/terminal-pipeline-ab-revive2-2026-07-03T06-13-42-518Z.json diff --git a/notes/terminal-performance-initiative.md b/notes/terminal-performance-initiative.md index 9021a1547..b1c955e76 100644 --- a/notes/terminal-performance-initiative.md +++ b/notes/terminal-performance-initiative.md @@ -426,6 +426,26 @@ disappears, merge revive into orca-performance and proceed to flow control (#6); if it persists, resume attribution renderer-side (probe pty-connection dataCallback additions per chunk). +### 2026-07-03 — A/B gate passed; term-speed-2 MERGED to orca-performance + +Load-controlled alternating A/B (fresh app per run, n=2/side, agent-tui + +DSR-load): perf 6.7/5.2 MB/s, dsr p50 19.9/21.3, p99 107.8/218.1; revive +6.1/3.6 MB/s, dsr p50 21.4/20.3, **p99 63.4/26.1**. Verdict: latency p50 +tied, p99 better on revive, throughput within overlapping noise (revive2's +3.6 followed two runtime-busy create failures). The earlier "35% +regression" is confirmed noise. Note: both branches ~5-7 MB/s today vs +11.5 yesterday — dev benches carry ~2x day-to-day machine variance; +absolute dev numbers are only comparable within one A/B session. + +Merged revive/term-speed-2 → orca-performance; typecheck clean, 288 +post-merge spot tests green. orca-performance now = main-ish base + #7153 ++ three perf fixes + full term-speed-2 chain (kill-switched, default ON) ++ scanner pre-filters. Extended user testing now covers everything. +Remaining from the revival agent's risk list: gate×drain e2e specs +(terminal-hidden-*, parked-memory, sleep-wake) still not run — queue them. +Next: producer flow control (#6) per design §5; prod packaged-build bench +for the real headline numbers. + ## Success criteria (baseline-relative; finalize after task 1) - DSR-under-load p90 in Orca within striking distance of iTerm2 on the same diff --git a/tools/benchmarks/results/terminal-pipeline-ab-perf1-2026-07-03T06-09-49-149Z.json b/tools/benchmarks/results/terminal-pipeline-ab-perf1-2026-07-03T06-09-49-149Z.json new file mode 100644 index 000000000..6bbdffb83 --- /dev/null +++ b/tools/benchmarks/results/terminal-pipeline-ab-perf1-2026-07-03T06-09-49-149Z.json @@ -0,0 +1,62 @@ +{ + "benchmark": "terminal-pipeline", + "label": "ab-perf1", + "timestamp": "2026-07-03T06:09:49.149Z", + "terminal": { + "program": "Orca", + "version": "1.4.120-rc.2", + "term": "xterm-256color", + "cols": 282, + "rows": 80, + "tty": true + }, + "machine": { + "platform": "darwin", + "arch": "arm64", + "cpu": "Apple M4", + "release": "25.2.0", + "node": "v26.0.0" + }, + "config": { + "sizeMb": 3, + "iterations": 5, + "dsrCount": 200 + }, + "dsrIdle": { + "count": 200, + "p50": 0.8596250000000509, + "p90": 3.434625000000011, + "p99": 11.113249999999994, + "max": 22.399957999999998, + "timeouts": 0 + }, + "throughput": [ + { + "fixture": "agent-tui", + "fixtureBytes": 3146560, + "wallMs": { + "count": 5, + "p50": 449.3374170000002, + "p90": 512.6463329999997, + "p99": 512.6463329999997, + "max": 512.6463329999997 + }, + "mbPerSec": { + "count": 5, + "p50": 6.678263023511458, + "p90": 6.9715260306977545, + "p99": 6.9715260306977545, + "max": 6.9715260306977545 + } + } + ], + "dsrUnderLoad": { + "paceBytesPerSec": 1048576, + "count": 50, + "p50": 19.932582999999795, + "p90": 23.195832999999766, + "p99": 107.79945800000041, + "max": 107.79945800000041, + "timeouts": 0 + } +} diff --git a/tools/benchmarks/results/terminal-pipeline-ab-perf2-2026-07-03T06-12-09-101Z.json b/tools/benchmarks/results/terminal-pipeline-ab-perf2-2026-07-03T06-12-09-101Z.json new file mode 100644 index 000000000..336d66c7f --- /dev/null +++ b/tools/benchmarks/results/terminal-pipeline-ab-perf2-2026-07-03T06-12-09-101Z.json @@ -0,0 +1,62 @@ +{ + "benchmark": "terminal-pipeline", + "label": "ab-perf2", + "timestamp": "2026-07-03T06:12:09.101Z", + "terminal": { + "program": "Orca", + "version": "1.4.120-rc.2", + "term": "xterm-256color", + "cols": 282, + "rows": 80, + "tty": true + }, + "machine": { + "platform": "darwin", + "arch": "arm64", + "cpu": "Apple M4", + "release": "25.2.0", + "node": "v26.0.0" + }, + "config": { + "sizeMb": 3, + "iterations": 5, + "dsrCount": 200 + }, + "dsrIdle": { + "count": 200, + "p50": 2.5035420000000386, + "p90": 7.941792000000078, + "p99": 64.25354199999992, + "max": 116.01079200000004, + "timeouts": 0 + }, + "throughput": [ + { + "fixture": "agent-tui", + "fixtureBytes": 3146560, + "wallMs": { + "count": 5, + "p50": 578.8935000000001, + "p90": 920.4295000000002, + "p99": 920.4295000000002, + "max": 920.4295000000002 + }, + "mbPerSec": { + "count": 5, + "p50": 5.183671015534376, + "p90": 5.973845867316144, + "p99": 5.973845867316144, + "max": 5.973845867316144 + } + } + ], + "dsrUnderLoad": { + "paceBytesPerSec": 1048576, + "count": 50, + "p50": 21.290749999998297, + "p90": 89.16362500000014, + "p99": 218.11587500000041, + "max": 218.11587500000041, + "timeouts": 0 + } +} diff --git a/tools/benchmarks/results/terminal-pipeline-ab-revive1-2026-07-03T06-10-47-352Z.json b/tools/benchmarks/results/terminal-pipeline-ab-revive1-2026-07-03T06-10-47-352Z.json new file mode 100644 index 000000000..e5539322a --- /dev/null +++ b/tools/benchmarks/results/terminal-pipeline-ab-revive1-2026-07-03T06-10-47-352Z.json @@ -0,0 +1,62 @@ +{ + "benchmark": "terminal-pipeline", + "label": "ab-revive1", + "timestamp": "2026-07-03T06:10:47.352Z", + "terminal": { + "program": "Orca", + "version": "1.4.120-rc.2", + "term": "xterm-256color", + "cols": 282, + "rows": 80, + "tty": true + }, + "machine": { + "platform": "darwin", + "arch": "arm64", + "cpu": "Apple M4", + "release": "25.2.0", + "node": "v26.0.0" + }, + "config": { + "sizeMb": 3, + "iterations": 5, + "dsrCount": 200 + }, + "dsrIdle": { + "count": 200, + "p50": 1.8601670000000468, + "p90": 5.375999999999749, + "p99": 56.85245800000007, + "max": 150.1708749999998, + "timeouts": 0 + }, + "throughput": [ + { + "fixture": "agent-tui", + "fixtureBytes": 3146560, + "wallMs": { + "count": 5, + "p50": 495.57854199999974, + "p90": 681.5660830000002, + "p99": 681.5660830000002, + "max": 681.5660830000002 + }, + "mbPerSec": { + "count": 5, + "p50": 6.0551319371516525, + "p90": 6.356255374434491, + "p99": 6.356255374434491, + "max": 6.356255374434491 + } + } + ], + "dsrUnderLoad": { + "paceBytesPerSec": 1048576, + "count": 50, + "p50": 21.363292, + "p90": 30.362291999999798, + "p99": 63.43170800000007, + "max": 63.43170800000007, + "timeouts": 0 + } +} diff --git a/tools/benchmarks/results/terminal-pipeline-ab-revive2-2026-07-03T06-13-42-518Z.json b/tools/benchmarks/results/terminal-pipeline-ab-revive2-2026-07-03T06-13-42-518Z.json new file mode 100644 index 000000000..ee7820f0a --- /dev/null +++ b/tools/benchmarks/results/terminal-pipeline-ab-revive2-2026-07-03T06-13-42-518Z.json @@ -0,0 +1,62 @@ +{ + "benchmark": "terminal-pipeline", + "label": "ab-revive2", + "timestamp": "2026-07-03T06:13:42.518Z", + "terminal": { + "program": "Orca", + "version": "1.4.120-rc.2", + "term": "xterm-256color", + "cols": 282, + "rows": 80, + "tty": true + }, + "machine": { + "platform": "darwin", + "arch": "arm64", + "cpu": "Apple M4", + "release": "25.2.0", + "node": "v26.0.0" + }, + "config": { + "sizeMb": 3, + "iterations": 5, + "dsrCount": 200 + }, + "dsrIdle": { + "count": 200, + "p50": 1.5509170000000267, + "p90": 6.049750000000017, + "p99": 26.964707999999973, + "max": 58.11133399999994, + "timeouts": 0 + }, + "throughput": [ + { + "fixture": "agent-tui", + "fixtureBytes": 3146560, + "wallMs": { + "count": 5, + "p50": 842.0814169999999, + "p90": 1099.9383750000002, + "p99": 1099.9383750000002, + "max": 1099.9383750000002 + }, + "mbPerSec": { + "count": 5, + "p50": 3.563543140189318, + "p90": 6.685369888993728, + "p99": 6.685369888993728, + "max": 6.685369888993728 + } + } + ], + "dsrUnderLoad": { + "paceBytesPerSec": 1048576, + "count": 50, + "p50": 20.340166999999383, + "p90": 23.667874999999185, + "p99": 26.1143749999992, + "max": 26.1143749999992, + "timeouts": 0 + } +}