perf: sound comparator (exact paired test, null block, confirmation) for backend perf gates #1130
Open
kayg
wants to merge 3 commits from
perf/sound-comparator into dev
pull from: perf/sound-comparator
merge into: kayg:dev
kayg:main
kayg:port/tasks-float-2
kayg:fix/train-1116-2
kayg:fix/train-1116-3
kayg:fix/train-1116-1
kayg:fix/flake-1134
kayg:fix/server-1182
kayg:dev
kayg:port/notes-float-3c
kayg:docs/auto-update-ig
kayg:feat/dav-transport
kayg:port/tasks-float-1
kayg:wip/mail1011-sv-order-1116
kayg:fix/flake-1179
kayg:fix/flake-1178
kayg:fix/guards-1153-fsio-split
kayg:fix/guards-1153-notes-split-we
kayg:fix/guards-1153-notes-lib
kayg:fix/guards-1153-notes-home
kayg:fix/guards-1153-ui-primitives
kayg:fix/guards-1153-primitives-e2e
kayg:fix/guards-1153-visibility-doc
kayg:feat/paper-grey-1116
kayg:fix/flake-1165
kayg:fix/flake-1119
kayg:docs/imap-766-plan-v2
kayg:fix/e2e-unique-ports
kayg:t3/paged-search-reconcile-final
kayg:wip/mail1011-final-1115
kayg:docs/tasks-float-port
kayg:perf/editor-first-paint-1c
kayg:feat/imap-notes-fetch
kayg:feat/imap-notes-projection
kayg:feat/imap-notes-readonly
kayg:feat/imap-notes-auth
kayg:feat/imap-notes-server-foundation
kayg:wip/mail1011-txn-ownvocab-1115
kayg:wip/mail1011-txn-novocab-1115
kayg:perf/p1117-final-harness
kayg:perf/single-shot-repeats
kayg:port/tasks-matrix
kayg:wip/mail1011-txn-1115
kayg:fix/static-gates-1155
kayg:feat/files-s1-identity-r7
kayg:fix/files-r7-idle-loop
kayg:fix/daily-train-1152
kayg:port/notes-float
kayg:fix/editor-tables-test-types
kayg:port/notes-float-listscript
kayg:feat/tasks-actions
kayg:port/notes-float-phone-preload
kayg:port/notes-float-listscroll
kayg:port/notes-float-budgets
kayg:port/notes-float-suite-fix-b
kayg:port/notes-float-sidebar-fix
kayg:port/notes-float-trim
kayg:port/notes-float-3-lists
kayg:fix/attachments-meta-capability
kayg:docs/carddav-writes-v2-plan
kayg:feat/contacts-companion-pure
kayg:issue/carddav-read-perf-fix-r2
kayg:issue/carddav-read-r2
kayg:port/notes-float-devsync2
kayg:review/calendar-2
kayg:review/switcher-a-pills
kayg:port/notes-float-switcher-a
kayg:port/port-tables-2
kayg:review/switcher-ends
kayg:wip/whiteboard-s1-1114
kayg:port/port-tables
kayg:wip/mail1011-perfneutral
kayg:review/photo-tint
kayg:port/notes-float-shell
kayg:wip/local/collections-db
kayg:wip/local/mail-p1
kayg:wip/local/cold-growth-on-tiering
kayg:wip/local/tiering-v3-s1
kayg:wip/local/wal1051-cap
kayg:wip/local/tiering-v3-s1-resume
kayg:wip/local/index-position-startup-scan
kayg:port/notes-float-flat
kayg:port/notes-float-promote
kayg:wip/handover/mail1011-candidate
kayg:wip/handover/files-s1-candidate
kayg:port/notes-float-shell-only
kayg:port/notes-float-perf
kayg:feat/whiteboard-s1
kayg:feat/tiering-v5
kayg:fix/app-switch-hitch
kayg:wip/local/files-s1-dev-v4-final
kayg:feat/files-s1-dev-v4
kayg:fix/c2-glass-shared
kayg:feat/flat-lists
kayg:wip/handover/whiteboard-s1-resume
kayg:wip/att-lazy-861
kayg:feat/switcher-browse
kayg:wip/att-lazy-860
kayg:feat/tasks-float
kayg:recovered/flat-backup-candidate
kayg:perf/stalls-1054-kc
kayg:land/ai-toolbar
kayg:feat/collections-db
kayg:feat/collections-db-fixes
kayg:codex/mail-1011-redesign-20261111
kayg:fix/ai-toolbar
kayg:backup/macos-vm/st3-head
kayg:perf/trim-candidate-phonestack
kayg:feat/switcher-three
kayg:fix/1051-index-idle-checkpoint
kayg:perf/stalls-1054-kb
kayg:perf/stalls-1054-k
kayg:perf/stalls-1054-r3
kayg:fix/c2-contrast-tail
kayg:perf/stalls-1054-r3-preview
kayg:feat/collections-before
kayg:feat/tiering-v4
kayg:fix/timelog-caret
kayg:wip/local/tasks-actions
kayg:docs/tasks-writes-v2-plan
kayg:st3-r3
kayg:feat/pass8
kayg:review/calendar-2-before-1111
kayg:wip/tiering-v3-cold4
kayg:perf/stalls-1054-r2
kayg:fix/suite-A4
kayg:fix/suite-A5-probe
kayg:fix/suite-A6
kayg:fix/suite-A3
kayg:fix/suite-A2
kayg:fix/suite-A5
kayg:fix/suite-A1
kayg:wip/local/attachments-861-fix
kayg:feat/contrast
kayg:wip/local/ports-861
kayg:storage/wal-checkpoint-off-save-1051
kayg:wip/local/mail-1011-reconcile-20261110
kayg:feat/style-sheet-fixes
kayg:feat/money-round
kayg:perf/stalls-1054
kayg:wip/tiering-v3-cold5
kayg:t3/mail-1011-liveness
kayg:feat/iphone-fixes
kayg:feat/notes-approve
kayg:wip/local/shrow-work
kayg:feat/files-s1-identity
kayg:feat/quickfix
kayg:wip/tiering-v3-cold
kayg:wip/local/shared-row-swipes
kayg:backup/macos-vm/pfx-B
kayg:backup/macos-vm/pfx-C
kayg:backup/macos-vm/pfx-D
kayg:feat/contrast-r1
kayg:feat/tiering-v3-s2-tags
kayg:feat/folder-drop
kayg:t3/photos-s1
kayg:feat/tiering-v3-s1-namespace
kayg:wip/local/photos-s1
kayg:t3/photos-plan-slice-one
kayg:recovered/backup/p1b-61505
kayg:t3/paged-search-reconcile
kayg:t3/smooth-pane-transitions
kayg:t3/index-position-startup-scan
kayg:fix/private-staging-759b-r2
kayg:backup/macos-vm/hk/hk1009/pr877
kayg:backup/macos-vm/hk/hk1009/pr878
kayg:docs/undo-block-ids-plan
kayg:fix/undo-768
kayg:backup/macos-vm/hk/hk1009/pr875
kayg:backup/macos-vm/hk/hk1009/pr904
kayg:proto/block-identity-v7d
kayg:backup/macos-vm/hk/hk1009/pr846
kayg:backup/macos-vm/hk/hk1009/pr860
kayg:backup/macos-vm/hk/hk1009/pr861
kayg:backup/macos-vm/hk/hk1009/pr849
kayg:backup/macos-vm/hk/hk1009/pr848
kayg:backup/macos-vm/hk/hk1009/pr853
kayg:backup/macos-vm/hk/hk1009/pr957
kayg:backup/macos-vm/hk/hk1009/pr893
kayg:backup/macos-vm/hk/hk1009/pr889
kayg:backup/macos-vm/hk/hk1009/pr902
kayg:docs/imap-notes-plan
kayg:docs/quota-plan-2
kayg:fix/parallel-test-flakes
kayg:docs/calendar-backend-v2-plan
kayg:feat/calendar-ical-converter
kayg:backup/macos-vm/hk/hk1009/pr808
kayg:docs/contacts-import-v2-plan
kayg:issue/610-pm-midnight
kayg:feat/calendar-v2-s1-containment
kayg:backup/macos-vm/hk/hk1009/pr854
kayg:backup/macos-vm/hk/hk1009/pr845
kayg:backup/macos-vm/hk/hk1009/pr917
kayg:docs/dav-recorder-v2-plan
kayg:plan/previews-865
kayg:plan/save-log-durable-entry
kayg:backup/macos-vm/hk/hk1009/pr934
kayg:fix/e2e-data-on-ram
kayg:backup/macos-vm/hk/hk1009/pr888
kayg:feat/appwindow3
kayg:feat/appwindow2
kayg:feat/appwindow
kayg:feat/money-p1
kayg:feat/keys-sheet
kayg:review/calendar-2-themes
kayg:feat/smooth-cursor
kayg:fix/float-style
kayg:review/calendar-2-float
kayg:release/2026-11-06-hotfix
kayg:archive/port/rows-drop-code
kayg:archive/port/rows-actions
kayg:archive/port/rows
kayg:scratch/tasks-894-ui-gates
kayg:review/calendar-2-night-wip
kayg:recovered/flaky/toast-reduced
kayg:release/2026-11-05
kayg:archive/flaky/rows-drop-fixed
kayg:archive/flaky/rows-actions
kayg:archive/flaky/rows
kayg:sim/bm15-final
kayg:sim/bm15-bis-932
kayg:sim/bm15-bis-909
kayg:sim/bm15
kayg:sim/bm15-bis-887
kayg:perf/tiering-option-b
kayg:fix/sw-lazy-precache
kayg:archive/plan/save-log-durable-entry
kayg:mock/money-fix2
kayg:archive/fix/e2e-data-on-ram
kayg:mock/appearance-all
kayg:mock/pill-press
kayg:mock/pill-press-mac
kayg:backup/macos-vm/appearance-after
kayg:mock/auto-swipes
kayg:mock/mail-actions
kayg:backup/macos-vm/mock/mail-actions
kayg:mock/money-static
kayg:archive/review/standards-917
kayg:perf/tiering-761-fix
kayg:mock/type-audit
kayg:mock/third-pane
kayg:feat/contacts-import-v2-s1
kayg:perf/executor-hot-path
kayg:archive/port/hidden-blocks
kayg:archive/port/devices
kayg:scratch/executor-on-894
kayg:scratch/executor-spans2
kayg:scratch/executor-spans
kayg:archive/port/rows-drop
kayg:feat/tiering-761-d-scale
kayg:feat/tiering-761-c-index
kayg:feat/tiering-761-b-reader
kayg:archive/review/sharing-pr3-review-9fec3d1f
kayg:perf/ports-lazy-budgets
kayg:feat/tiering-761-a-migration
kayg:archive/review/sharing-pr3-review
kayg:archive/review/sharing-pr3-review-code
kayg:archive/plan/previews-865
kayg:archive/port/port-attachments-3
kayg:archive/port/contacts-merge
kayg:fix/motion-audit-859
kayg:fix/motion-audit-859-mac
kayg:archive/port/port-pickers
kayg:archive/port/port-tables-2
kayg:archive/port/port-tables
kayg:recovered/local/sharing-s1-pr2-room-snapshot-candidate
kayg:archive/fix/parallel-test-flakes-code-minipc01
kayg:docs/imap-766-readonly-slice
kayg:feat/dav-recorder-v3
kayg:research/788-diagnosis
kayg:archive/fix/parallel-test-flakes
kayg:archive/perf/pr792-cold-index-edit
kayg:docs/sharing-slice-1
kayg:recovered/feat/dav-recorder-v2
kayg:recovered/feat/dav-recorder-v2-edd7bbb
kayg:spike/imap-766-s0-cases
kayg:archive/fix/undo-768
kayg:recovered/feat/dav-recorder
kayg:recovered/feat/dav-recorder-901acd4
kayg:feat/contacts-import
kayg:perf/cold-growth-on-764
kayg:perf/cold-growth-on-tiering
kayg:recovered/feat/tasks-set-status
kayg:feat/tasks-move-reorder
kayg:feat/tasks-delete-promote-duplicate
kayg:feat/carddav-writes
kayg:perf/quota-on-tiering
kayg:perf/quota-simple
kayg:perf/cold-growth-on-quota-stack
kayg:recovered/perf/cold-growth-on-tiering
kayg:feat/calendar-identity
kayg:feat/calendar-event-parser
kayg:feat/calendar-props-maps
kayg:port/glass-when-ring
kayg:recovered/feat/tiering-761-s1-wip-8132a84
kayg:recovered/feat/tiering-761-s1-wip-9da4094
kayg:recovered/feat/tiering-761-s1-wip-724512c
kayg:recovered/feat/tiering-761-s1-wip-66e667e
kayg:recovered/feat/tiering-761-s1
kayg:wip/6by32-01-tier-761-s1-pause-20261030
kayg:spike/imap-766-s0
kayg:wip/6by32-02-calternal-pause-20261030
kayg:wip/8by64-01-review-688-pause-20261030
kayg:wip/6by32-01-verify-744-pause-20261030
kayg:wip/6by32-01-verify-742-pause-20261030
kayg:fix/private-staging-759b
kayg:wip/6by32-01-review-748-pause-20261030
kayg:wip/6by32-01-review-733c-pause-20261030
kayg:wip/6by32-01-review-733b-pause-20261030
kayg:review/calendar-month
kayg:wip/local/bm15-trash
kayg:plan/759b-staging
kayg:review/767b-tests
kayg:review/preview-2026-10-29
kayg:docs/tiering-731-plan
kayg:wip/c6b02-review-733d
kayg:wip/c6b02-bm1-full-a
kayg:docs/deploy-plan
kayg:fix/storage-owner-liveness-642
kayg:fix/storage-fix-7
kayg:feat/tiering-731
kayg:wip/tiering-731-first-attempt
kayg:perf/idle-honest-2
kayg:fix/storage-private-tmp-642-dev
kayg:fix/storage-exact-file-quarantine-642
kayg:perf/one-flush-save
kayg:review/calendar-static
kayg:review/indexing-ring
kayg:review/when-field-2
kayg:proto/block-identity-2-review
kayg:proto/block-identity-review
kayg:review/when-field
kayg:issue/tasks-create-ids
kayg:issue/tasks-create
kayg:review/combined
kayg:review/task-polish
kayg:review/top-buttons
kayg:review/q1-q5
kayg:archive/integ325-293
kayg:archive/integ325-ci
kayg:issue/calendar-adr
kayg:archive/old/train/2026-10-23bk2
kayg:archive/old/train/2026-10-23bk
kayg:issue/469-mockup-9a
kayg:issue/smart-tasks-mockup
kayg:issue/469-menus
kayg:issue/652-signout-flake
kayg:issue/652-history-fix7
kayg:issue/652-history-fix6
kayg:archive/old/issue/spring-check-perf
kayg:issue/spring-check-perf
kayg:issue/659-rename-fast
kayg:archive/old/train/2026-10-21ar
kayg:issue/search-hardening-3
kayg:issue/652-history-fix5
kayg:issue/660-port-sheets-glass
kayg:issue/652-history-fix4
kayg:issue/652-history-fix3
kayg:issue/652-history-fix2
kayg:issue/652-history-flake
kayg:train/2026-10-21an
kayg:issue/settings-admin-port
kayg:issue/search-port
kayg:train/2026-10-20am
kayg:issue/storage-split-fix2
kayg:issue/storage-split
kayg:archive/old/issue/folder-ids-fix
kayg:train/2026-10-20al
kayg:archive/old/issue/folder-ids
kayg:train/2026-10-20ak
kayg:issue/tables-mockup
kayg:train/2026-10-19aj
kayg:train/2026-10-19ai
kayg:issue/469-merge-fixes
kayg:issue/sidebar-band
kayg:archive/old/issue/608-settings-spec
kayg:train/2026-10-19ah
kayg:issue/swipe-offscreen
kayg:train/2026-10-19ag
kayg:archive/old/issue/590-nlp-adr
kayg:archive/old/issue/587-event-after-write-2
kayg:train/2026-10-19af
kayg:archive/old/issue/587-event-after-write
kayg:issue/469-pill-room-c
kayg:issue/469-pill-room
kayg:train/2026-10-19ae
kayg:issue/469-narrow-handle
kayg:issue/397-ios-swipe-2
kayg:issue/469-desk-fixes
kayg:archive/old/issue/auto-update-adr
kayg:issue/469-filter-gap
kayg:issue/469-port-1b
kayg:issue/442-opacity-flake
kayg:issue/327-web-fast-3
kayg:archive/old/issue/469-port-1
kayg:issue/469-port-1
kayg:issue/327-web-fast-2
kayg:archive/old/issue/327-web-fast
kayg:archive/old/issue/425-stt-bench-vq1
kayg:archive/old/issue/445-no-bleed
kayg:archive/old/issue/400-swipe-mockup-2
kayg:issue/426-client-review
kayg:issue/426-client-2
kayg:issue/426-client
kayg:archive/old/issue/476-safe-area-lab
kayg:archive/old/issue/445-top-light
kayg:issue/471-blocks-mockup
kayg:archive/old/issue/448-links-app-2
kayg:archive/old/issue/448-links-app
kayg:archive/old/issue/398-cold-links
kayg:issue/434-442-small-2
kayg:issue/434-442-small
kayg:archive/old/issue/398-unload
kayg:archive/old/issue/445-bottom-band
kayg:issue/445-bottom-band
kayg:issue/351-rem-3
kayg:issue/351-rem-2
kayg:issue/351-rem
kayg:archive/old/issue/327-first-note
kayg:issue/395-width-phone
kayg:archive/old/issue/327-typing
kayg:issue/396-ios-edges
kayg:issue/397-ios-swipe
kayg:archive/old/issue/327-notes-index
kayg:issue/345-347-contrast-empty-2
kayg:archive/old/issue/44-arenas
kayg:issue/44-arenas
kayg:archive/integ325
kayg:archive/old/issue/327-perf-harness
kayg:archive/old/issue/44-thp
kayg:issue/44-thp
kayg:archive/old/issue/285-sticky-pills
kayg:archive/old/issue/44-trim-3
kayg:issue/44-trim-3
kayg:archive/old/issue/165-cards
kayg:archive/old/issue/165-picker-2
kayg:archive/old/issue/212-multi-select
No reviewers
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/calternal!1130
Loading…
Reference in a new issue
No description provided.
Delete branch "perf/sound-comparator"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status (15 Nov, 07:10 IST, head
5660b886c)perf/inert-patch.py) with an intersection–union rule;tasks-benchmode;--only).tasks.describeshift.search.query+8.6% andsave_ackp95 flips were artefacts.Why
The Files gate (r6 method:
candidate U95 ≤ dev-copy U95per cell, 288 cells, 5 fixed-order rounds) failed 131/288 cells with no change at all (#1117, A/A block, 14 Nov). Two noisy upper bounds compared per cell come out close to a coin flip, so that gate can't pass dev itself. kayg's rule stays: no regression of any size on a hot path. What changes is how "a regression" is decided.What this PR adds
perf/compare.py(stdlib only: the VMs have no numpy):--hotprefixes) and smoke.dev2vsdevtwo-sided; if it flags anything, the turn is void (exit 3).--flags-outwrites the flagged cells;--onlyre-tests them in an independent turn. A regression needs both.--resolution(default 10%) make the result inconclusive (exit 4): pool another turn.--layout inert): a cell counts only if the candidate is slower than dev AND than every dev+inert-padding arm (perf/inert-patch.py; fat LTO reshuffles the binary).--pairsgives exact mirror-pair units.perf/vm/paired-turn.sh: runs rounds of dev, dev2, inert and cand;--order mirrored(default) orrandom;--mode tasks-benchfor per-arm bench builds.layout.jsonafter every round.perf/compare_test.py: synthetic self-tests (pass, flag+confirm, void, copies, too few rounds).docs/perf/comparing.md: the method, the written-down false-alarm rates and the sizing. Design only (ADR 0003); measured numbers live in comments.Expected false-alarm rates (by construction, with random order)
Failure table
test_dev_vs_dev_difference_voids_the_turntest_too_few_rounds_is_refused🤖 Generated with Claude Code
Validation on the existing 14 Nov data (new comparator, head
40760cd33)Data. I used the five fixed-order Files sessions still on perf-01. None was deleted.
files-s1-perf-c8688c-DE10q9: r1, r6. r5 is incomplete and was skipped.files-s1-perf-r7: r7a (logs), r7b (logs-r7b), A/A (logs-aa).Each session has 5 rounds of dev, cand-a, dev-copy, cand-b at 1k/10k/100k,
--runs 1.home.,cold.,startup.,shutdown,mem..These are only 5 rounds each (32 exact flips), so I lowered
--min-roundsto 5 here. That makes this test weak: the smallest possible p is 1/32. The order was also fixed, not random, so this is a sanity check and not a gate.Cells. The old 288 comparisons are 170 distinct cells. 99 were copies: single-sample metrics counted three times. 3 are constant counts.
search.queryp99 (max of 55) 1.055The null block passes in every session (5/5). The old comparator failed the same A/A data in 131/288 cells.
Pooled null (stronger check). All 25 dev-copy-vs-dev rounds as one A/A turn (10,000 random flips, 170 cells): 0 cells flagged.
paired-turn.shremoves the second.Resolution (from the same 25 null rounds; one-sided, 80% power, hot family of the full matrix):
sync.save_ack,search.queryandcold.startup(10k). +20% is needed on 10khome.pagep50 (per-round sd 0.19 in log).--runs 1, p95/p99 at 10k can't resolve anything under 1.5×. That's a harness limit (20 requests per run), not a comparator setting.Noise structure. Pairs of dev arms 1 to 7 slots apart have the same spread (10k
home.pagep50: 0.164 at distance 1, 0.149 at distance 7). The noise is per server run, not slow drift. So tighter interleaving buys nothing; more fresh-server runs (--runs 3) and more rounds do.#1117 on old data, under the new rule:
search.queryp99 (1.055) and, pooled with r7b, 10khome.pagep95 (1.63).~/bin/perf-turn sound-comparator, dev / dev2 / #1117934ef1c36,--runs 3, 80-min deadline, seed 1117).#1117 on the new comparator: fresh turn, no regression found; 27 cells are below the 10% resolution
Turn.
~/bin/perf-turn sound-comparatoron perf-01. The FIFO slot had no FRONT. A unit on hd01 held perf-02's lock for the whole turn.perf/vm/paired-turn.shat #113040760cd33, random order per round (seed 1117), 10 rounds, 80-min deadline.calternal-perf --hot-only --sizes 1k,10k,100k --runs 3 --cold-runs 1.1160fe3e…(dev796d80cba), cand09fdc5db…(#1117934ef1c36).Comparator.
python3 perf/compare.py layout.json --hot '*'(#113086e8d580b).start_homestamp runs on every request.home.pagep95: 0.99 (upper 95% bound 1.43)home.page_titlep95: 0.83 (bound 0.99)search.prefixp95: 0.98search.queryp95: 0.98 (bound 1.04)Verdict under the new rule: no regression found. Not yet READY: resolution.
cold.startup,startup.healthz,shutdown,home.first_page,search.first_query,open.long_note, with MDE 12–60%.home.page(14%/21%),home.page_title(11%/17%),open.note(11%/35%), 10kopen.api_get(17%),search.typo(24%), 100ksync.round_trip(12%).Next (decided):
--cold-runs 3, or a startup-only turn at 1k+10k). I'll run that as the second turn's design:--runs 3 --cold-runs 3, sizes split if needed to stay ≤ 90 min.Unresolved hot cells (ratio, upper 95%, MDE)
#894 turn A on the new comparator (#1130): the
search.query+8.6% and thesync.save_ackp95 flips don't reproduce. They're order and noise effects.Asked by the orchestrator: mirrored arm order, a dev + inert-change layout arm, and confirmation in a second turn. All three are now in #1130.
Arms. All arms were built by me on dev-01 in fresh worktrees with the same toolchain, relayed through hd01 and sha256-checked on both ends.
calternalsha256796d80cba(dev2 is a byte copy)c3e9a68f…796d80cba+perf/inert-patch.py --seed 1 --functions 5700fd617d16…9db7c845d737e2eee…crates/tasks, reached only behindblack_box(false)fromTasksPlugin::new. That's the same crate and about the same size growth as #894, so fat LTO reshuffles the layout in a similar way.calternal-perf2b5bf648…from796d80cba.Turn A.
~/bin/perf-turn sound-comparatoron perf-01, no FRONT. A unit on hd01 held perf-02's lock for the whole turn.perf/vm/paired-turn.sh --order mirrored --seed 894 --warmup, each armcalternal-perf --sizes 10k --runs 3 --cold-runs 0(full scenario set, as the #894 lane ran it).cand dev inert dev2, round 2 its mirror.Comparator.
python3 perf/compare.py tA/layout.json --layout inert --hot sync.,storm.,uploads.,trash.,open.What this says about the two lane findings:
search.queryp50:sync.save_ackp95:--pairs, 6 units, 64 flips): 0 flags.Turn A verdict: no regression against dev or the layout arm on any hot or smoke cell. One hot cell is unresolved:
open.long_note(single-shot per run, MDE 65%; its ratio is 0.83).Turn B (
tasks-bench, same four arms, mirrored) is running now. The #894 verdict follows when B is in.#894 turn B (
tasks-bench): VOID by the null-block rule, to be re-run. #894 itself has 0 flags.Turn.
~/bin/perf-turn sound-comparatoron perf-01 (no FRONT; behindnf3oh-p1), with perf-02's lock held by a unit on hd01.perf/vm/paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8942 --warmup.tasks-bench's own budget gates (tasks.updatep95 > 40 ms, cold growth > 10%). They are kept as measured runs (#1130e61888a13).Binaries (sha256 on both ends),
tasks-benchper arm because it links the code it measures:796d80cba)20b21dea…796d80cba+ inert padding)691ade05…9db7c845d)16532627…Comparator.
compare.py tB/layout.json --layout inert --hot tasks., 41 cells, 10,000 random flips.Reading:
tasks.cold_tasksdev2 vs dev ×0.983, adjusted p 0.0495. That's just under α = 0.05 on one cell of 41, and it's the ~1-in-20 void rate the design accepts. The rule says void and re-run, so I don't use this turn for the verdict.tasks.todayp50 ×0.985 (upper 95% ×1.006, MDE 3.1%). The lane's r3 +9.2% doesn't reproduce.tasks.countsp95 ×1.004, p99 ×1.047 (MDE 16%).tasks.write_warmp50 ×0.998 (MDE 1.4%).#1117: second turn and pooled verdict. No regression found; startup/shutdown single-shot cells still under-resolved
Turn 2.
~/bin/perf-turn sound-comparatoron perf-01, no FRONT. A unit on hd01 held perf-02's lock for the whole turn.paired-turn.sh --order mirrored --seed 11172 --warmup, each armcalternal-perf --hot-only --sizes 1k,10k,100k --runs 3 --cold-runs 3.Pooled turns 1+2.
compare.py t1/layout.json t2/layout.json --hot '*': 16 rounds, 65,536 exact flips, 172 cells, α = 5%. Each turn's null block is tested on its own.What the gate can't yet rule out. 21 hot cells have an MDE above 10%:
home.page/home.page_titlep50 at 11–13%.cold.startup×1.09, 1kshutdown×1.09, 10kopen.long_note×1.49 (MDE 42%), 10ksearch.first_query×1.15. #1117 does add work exactly there: a Home-root watcher at start, and joining the walk thread at shutdown. So a small startup/shutdown cost is plausible, and these numbers can't exclude it.--sizes 1k,10k --runs 10 --cold-runs 5 --hot-only, mirrored, with an inert arm. It runs after #894'stasks-benchre-run (my one ticket is queued). Until then, #1117 is not READY, for resolution only. Nothing is flagged.#894 perf verdict on the new comparator: no regression found.
search.queryandsync.save_ackwere artefacts;tasks.describep95/p99 is a dev-arm/layout effect, not #894's code.Turn C (
tasks-bench, re-run of void turn B).~/bin/perf-turn sound-comparatoron perf-01, behind Notes Float tickets, no FRONT. perf-02's lock was held by a unit on hd01.paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8943 --warmup.tasks-bench's owntasks.updateand cold-growth budgets; those runs are kept.Command:
compare.py tC/layout.json --layout inert --hot tasks.. 41 cells, 10,000 flips. Exit 0 (PASS). The null block passes (smallest adjusted p 0.059).(Per cell, the four rows are: dev2 vs dev, inert vs dev, #894 vs dev, #894 vs inert.)
tasks.describep95/p99, the one interesting finding:devthere: inert ×1.039/×1.055, and even dev2 (byte-identical to dev) ×1.018/×1.043. Turn B showed the same pattern.dev. That's now fixed: the warm-up runs every arm in random order (#113064e805159).crates/tasks/src/index.rsandnotes/describer.rsare unchanged against796d80cba).#894 verdict across valid turns:
calternal-perf10k, all scenariosopen.long_noteunresolved (MDE 65%, ratio ×0.83)tasks-bench10ktasks.cold_tasksp 0.0495)tasks-bench10ksearch.queryp50 +8.6%: ×1.012 here, which is dev2-vs-dev's own size (×1.012). It was a dev-first rotation artefact.sync.save_ackp95 ±11%: ×1.002 here, while dev2 vs dev moves ×1.11. It's tail noise.tasks.todayp50 +9.2% (lane r3): ×1.000 here (turn C), ×0.985 (turn B).open.long_note: it's one long-note open per server run. Pooling a second turn A would only bring its MDE from 65% to about 46%. Resolving it needs a harness change (more long-note opens per run), not more turns. I'm recording it as a harness gap, not a blocker; its point estimate is 17% faster.Perf gate for #894: PASS under #1130's method. Not merged; the orchestrator decides.
#1117 final perf verdict (#1130 method): no regression found; 11 single-shot cells still can't be certified below 10%
Turn 3, focused on startup.
~/bin/perf-turn sound-comparatoron perf-01, behind Notes Float, no FRONT. perf-02's lock was held by a unit on hd01.796d80cbac3e9a68f…796d80cba+ 600 never-run functionsae6d0a27…934ef1c368d7e280a…calternal-perf062dd8a7…(it has--hot-only).--hot-only --sizes 1k,10k --runs 9 --cold-runs 5, mirrored, warm-up on every arm.--hot-only, once on a fixture that was too small for--runs 10. The driver now catches both before or at the first arm (#1130502f0bb0a,58f5e534f).Pooled turns 1+2+3, the 1k and 10k cells that all three share:
compare.py t1 t2 ts --hot '*', 20 rounds, 10,000 flips, 115 cells.Cells the gate can't certify below 10%:
Verdict and decision:
cold.startup×1.075 (upper bound ×1.17), 1kshutdown×1.069 (upper ×1.16) and 10kopen.long_note×1.37 (MDE 34%).open.long_notewould need about 10 more turns. Resolving them is harness work: repeat the long-note open and server start/stop several times per run. I'm recording that as the open item for #1117.compare.py --only. I'm not merging.Side finding: the typing scenario's two-client text check failed 4 times in about 700 runs, at 10k, including on plain dev and on the inert arm. Filed as #1146; it's not #1117's.
Proposal for
paired-turn.sh:--single-root(from #1117's final perf turn)Every turn passes
--state-dir, so app data is never inside the Home. Production runs one/dataroot, where each person'snotes/,search/andindex.db*sit inside the Home folder. That difference hid #1117's idle walk loop (about 1.7 cores on an idle server), the 250 ms poll, and the watcher wake-ups on every save (details on #1117).For #1117's final turn I staged a local copy of
5660b886cwith this small option. I didn't push it to this branch. Please take it in if you agree:View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.