Performance Doctrine & Targets
1,472 words1 tableA design document: it describes the 1.0 target, not what runs today.
Reference machine: 32-core/64-thread, 256 GB RAM, PCIe-4 NVMe, single node. Every number below is a provisional EmpiricalGate, activated only when its benchmark manifest pins CPU/microcode, kernel/filesystem/mount options, NVMe model/firmware and measured fsync distribution, toolchain/build, database configuration, graph/schema, transaction size and concurrency, retention/FEC/encryption/index policy, cold/warm state, result consumption, and statistical comparison rule. Every gate additionally declares its operation class — a row of the operation-cost registry (Appendix G) — and its counting unit (client-visible requests versus internal probes), and must be derivable from that row: a latency gate below its class's ordered-barrier count × the manifest's pinned measured fsync p50, or a throughput gate above the apply ceiling its sequenced-command count implies, fails CI as a registry divergence (§1 constraint 12), never as a missed benchmark. External “best” comparisons pin a publication, version, dataset, and configuration; moving or unavailable comparators cannot be CI gates.
| Domain | Gate |
|---|---|
| Cold bulk load (CSV/Parquet-lite → sealed runs) | ≥ 40M edges/s sustained (I/O-bound: ≥ 60% of NVMe seq-write ceiling) |
| Transactional ingest | Provisional ≥ 2M edge inserts/s for the pinned batch/txn mix; latency includes final rebase/constraint work, payload D1, root D2, configured encryption/FEC, and in replicated mode payload quorum + Raft. No marker-only benchmark is reported as commit latency. |
| Tier-migration churn | report promote↔demote reversals per descriptor, minimum-dwell violations (must be zero), conversion-cost regret, and soak-test limit cycles. SPRT type-I/type-II bounds apply only to its declared decision hypotheses; they are not reversal-rate bounds. |
Point reads (vertex by key, 1-hop existence; SnapshotQuery class, client-visible requests) |
≥ 8M lookups/s across cores; p99 < 15 µs warm |
| Durable read/write lifecycles (per Appendix G class, client-visible operations) | Sequenced semantic commands and total Raft log entries per operation, measured by operation class, must equal the Appendix G registry row where the row declares an exact count and fall within the row's declared configuration-dependent bounds where it declares a range — a measured excess is a protocol regression, not a tuning miss; durable-autocommit-read and fused-autocommit-write latency distributions reported p50/p95/p99 against the registry-derived barrier floor |
| Neighbor scans, sealed runs (decoded-cache path) | ≥ 500M edges/s per core; ≥ 10B edges/s node aggregate (memory-bandwidth-bound: EF+varint decode ≥ 4 B/edge effective) |
| 2-hop factorized count (10⁸-flat-row equivalent) | < 50 ms (factorization gate: must not materialize) |
| Triangle count (WCOJ over compressed runs), e.g. com-Orkut-class | within 2× of best published static-CSR WCOJ systems; ≥ 20× any pointer-chasing GDBMS |
| LDBC SNB Interactive SF-100 | full compliance run; throughput ≥ 3× Neo4j, ≥ 1.5× best published embedded engine on reference class |
| LDBC Graphalytics (BFS/PR/WCC/CDLP/LCC/SSSP) | within 1.5× of dedicated static analytics engines on transactional storage (the Sortledton bar, beaten) |
| LDBC FinBench (write-heavy, temporal-flavored) | publishable leadership run |
| Time-travel query overhead | Measure current OLTP cost by retention policy plus historical latency by checkpoint distance and suffix bytes; provisional targets are <8% current-path overhead and <2.5× for the declared recent-history fixture, not universal guarantees. |
| Vector: 10M × 768-d f32, HNSW | Provisional ≥20k QPS at measured recall ≥0.95 on a pinned authorized-snapshot corpus; publish exact-baseline sampling and confidence interval. Separately report logical commit→delta-tail searchable and commit→merged-generation latency. No sample can “certify” each insert. |
| Ripple view maintenance | delta application ≥ 1M input-changes/s per circuit worker; subscription end-to-end p99 < 10 ms |
| Branch create / snapshot open | Snapshot open is O(1) metadata and provisional <100 µs warm. Durable branch creation is O(1) data-copy complexity but includes root publication/fsync or Raft and has a separate latency distribution. |
| Recovery (clean shutdown / crash @ 1 TB) | < 1 s / < 30 s to first query (anchor-mapped, capsule tail replay) |
Temporal connectivity (CONNECTED … AS OF, sealed history) |
Provisional <100 µs per probe over every sequence sampled by the pinned sealed-history fixture. The result is exact only for a matching sealed-exact projection/root; branch overlays or uncovered tails must be compensated or fall back (§10.7). |
| Cardinality-interval evidence | Report realized marginal coverage, stratum counts, selection/window policy, drift alarms, and any nonexchangeability penalty; failure reverts to conservative costing. This is FG-CAL-02, not a correctness gate. |
| Tail evidence | p99.9 is empirical when sufficiently observed; any POT/GPD extrapolation separately reports threshold, exceedance count, dependence/stability diagnostics, fit uncertainty, and sensitivity. A model failure blocks the extrapolated claim rather than “certifying” the tail. |
| Durability model | Modeled MTTDL ≥ declared target with sensitivity bounds for every shipped profile (FG-CFG-01); crash/restore tests remain separate empirical evidence. |
| Controller stability | Defaults outside the named model's predicted instability region with sensitivity margin (FG-CFG-02) plus no limit cycle in pinned soak fixtures. |
| Adaptive-policy audit | Promotion requires the registered FG-CAL-01 evidence rule, overlap/effective-sample checks, and deterministic fallback; reports never claim arbitrary-policy OPE. |
| Sequencer & maintenance-stream scale | Provisional: N = 10k live cursors each sustaining M = 1 coalesced delivery/s with subscription end-to-end p99 < 10 ms and user-commit p99 degradation within the declared head-of-line budget; N/M and the budget are provisional values derived from the FG-CFG-04 capacity model (Appendix G), which the manifest pins together with the fan-out amplification factor and implied external time-observation rate |
| Governance profile: commit(order-accepted)→released | p50/p99 against the pinned deterministic simulated audit authority under fgdb-sim with a declared RTT/throughput distribution, reported beside the no-audit baseline; real-authority numbers are reported, never gated |
| Governance profile: released→ActiveDeliverable→first-result-byte | p50/p99 under the same pinned simulated authority and time-evidence fixture, reported beside the no-audit baseline |
| Governance profile: end-to-end commit→streamable (Required class) | p50/p99; must decompose additively into the two plane segments above within the variance budget, reported beside the no-audit baseline |
| Ordered sync operations | Count per commit and per append batch, by posture (single-node/replicated) and audit class (NotRequired/Required); must byte-match the Appendix G barrier chain including its fusion-legality column — a legal fusion counts as one, never zero |
| Byte economy: metadata bytes per small durable object | Measured on the pinned small-commit fixture with component breakdown (symbol headers, MACs, index entries, key wraps); gate value provisional, derived from Appendix G's minted-object census |
| Byte economy: Chronicle stream bytes per user commit | Reported by class — semantic payload, maintenance, audit — for the pinned transaction mix, wired into §6.6's component breakdown |
| Byte economy: identity-column bytes per live edge | By tier (Tier D and sorted sealed runs) under the canonical stable-key encoding; reverse-family blocks reported separately |
| Endurance: sustained ingest | Defined-duration ingest at a stated fraction of the transactional-ingest gate — 2h run on merge to main, 24h nightly — on the shared endurance fixture that also feeds the §6.6/tier-migration soak |
| Endurance: compaction-debt ceiling | Steady-state compaction debt bounded in §6.6's write-amplification model terms — debt bytes and generation count at sustained ingest at the stated gate fraction; exceeding the ceiling fails the run even when point latencies pass |
| Endurance: long-run memory stability | RSS and allocator-slack drift bounds over the same endurance run; unexplained monotonic drift fails |
| Derived-state freshness | commit→delta-tail-searchable and commit→merged-generation p50/p99 promoted from reported to gated numbers (values provisional), plus watermark lag under sustained ingest; claim class slo/benchmark, never an invariant |
Method: every gate has a bench binary, a committed baseline, a variance budget, and a flamegraph artifact on regression; the harness itself is deterministic (seeded workloads, pinned schedules) so regressions replay. Performance work follows the asupersync "How We Made It Fast" discipline: profile → remove one contention/allocation → re-verify determinism and cancel-correctness → commit with evidence — one lever per change, never a bundle. Six standing laws bind every published number: (1) no benchmark-only semantics — durability, isolation, and result consumption match the declared production mode; (2) distributions, not averages — p50/p95/p99/p99.9 and worst hot-key behavior are always reported, with extreme quantiles carrying their fitted-tail confidence intervals rather than raw sample maxima; (3) never hide compaction — foreground latency during compaction, checkpoint, GC, and index build is part of the result; (4) memory is a first-class metric — bytes per live edge include versions, indexes, witnesses, and allocator slack, not just payload; (5) adaptive numbers disclose their policy epoch — any result produced under a non-fallback policy names it, and the fallback's number is published beside it; (6) no unpriced protocol weight — every gate names its Appendix G operation class and counting unit, every published number is checked against that row's derived floor, and any change that adds sequenced semantic commands, ordered durability barriers, external-authority interactions, or per-object identity structure updates the operation-cost registry in the same change — CI rejects the divergence, so the gates and the protocol remain mutually derivable.