History read costs
Tracked by pm-gh1664 (repository-only; PM records are excluded from the npm package).
pm context --for orient --limit 3 --json on a generated fixture with 2001 history
streams and 216.0 MiB of history
(100 archive entries per stream, each stream
ending at a distinct time), measured on Node v24.22.3
linux/x64. Each sample is a fresh CLI process.
| Path | runs | best | p50 | max |
|---|---|---|---|---|
| Bounded (trusted stream bounds) | 5 | 778 ms | 843 ms | 950 ms |
| Full scan (summary path blocked before each sample) | 3 | 2077 ms | 2227 ms | 2340 ms |
The ceiling is a ratchet: --update keeps the committed ceiling when a
measurement would raise it, unless --allow-increase <reviewed reason> is
given.
The gate (node scripts/bench/history-read-costs.mjs --check, part of
pnpm quality:static) fails when the bounded p50 exceeds
0.6 of the same runner's
full-scan p50. On a runner whose bare-Node control is within its budget and
whose full scan exceeds the declared 1440 ms
ceiling plus a 100 ms noise margin, it also fails when
the bounded p50 exceeds that enforced ceiling. Where the full scan does not
exceed it, the absolute check could not detect a regression, so it is
reported as unverified and the fraction gate decides; --update refuses a
ceiling its own measurement cannot prove. The first read of a fresh fixture also builds the history event
index and is excluded from both samples.
来自 pm 2026.11.30 中的 docs/performance/history-read-costs.md。 在 GitHub 上查看