Reference
Performance targets
rdy sets its performance budgets per project size, so the primary budget reflects real use and the largest size is a ceiling, not the common case. This reference gives the three size tiers, the budget for each operation, how a budget applies at each tier, and what rdy's own quality gate measures. How the gate runs is in Quality gate.
Size tiers
A block averages 20 to 27 words, and a page holds 30 to 60 blocks. Project size is counted in blocks.
- Size tier
- A size tier is a band of project size, counted in blocks, that rdy sets its performance budgets by. The tiers are typical (2k to 20k, budget at 10k), large (20k to 50k) and ceiling (100k, a stress size). Every target must be met at the typical tier; the budgets are in Performance targets.
| Tier | Blocks | Budget set at | Reference corpora |
|---|---|---|---|
| Typical (primary) | 2k to 20k | 10k | a product's design after a year, a mid-size docs site, a 400-block tutorial family |
| Large | 20k to 50k | 50k | a multi-team product after a year or two of agentic design, where agent-written designs run two to three times denser than human ones |
| Ceiling (stress) | 100k | 100k | a large language's whole documentation, or a large project's whole design archive |
At the typical tier every operation aims to meet its target in the table below. The gate report lists every miss, and the next plan that touches the operation takes it up. Only a regression against the baseline, or a p95 over a spec ceiling, fails the gate.
At the large tier queries and cold start meet their target, and writes finish within twice their target.
At the ceiling tier every operation works correctly and finishes within five times its target, except writes, whose target is stated per hardware class.
rdy's performance record keeps a miss at the ceiling tier, and the miss never blocks a release. The quality gate's perf tier measures the typical tier, and a deep run adds the large tier.
Targets
Each operation has one target. A target is the p95 of the operation's timed runs, unless the row says otherwise. The ceiling tier measures 100k blocks and 1k in-flight changes.
| Operation | Target | Note |
|---|---|---|
| Write and commit one change, through the daemon, durable flush included | < 5 ms p95 on Linux NVMe; one durable flush plus < 1 ms on macOS | the write target is stated per hardware class, because the floor is the disk's flush |
on_change checks and tension detection | < 10 ms p95 | included in the write response |
Impact and context queries, in the scopes inflight and view: with 1k in-flight changes | < 5 ms p95 | the overlays must not regress them |
| View materialization | < 50 ms cold; < 1 ms incremental | include and commit are incremental; exclude counts as cold |
| Landing with 50 views rebasing | < 100 ms p95 | 50 non-empty unpinned views |
| Daemon cold start with graph, tensions and inbox | < 2 s | includes catching up a lagging index |
| Full static site render | < 2 s | |
| Live site: a write until an open page's reload event | < 1 s p95 | proposed and reported, not enforced; the large tier applies the same budget |
| Live site: one page request from a warm build | < 5 ms p95 | proposed and reported, not enforced |
| Inbox fetch, 200 entries | < 5 ms p95 | |
| Version position | cached, < 10 µs p95 | measured on the isolated Linux bench |
| Full tree, 1k folders and 10k docs | < 5 ms p95 | from the published snapshot, memoized per canon head |
| Path resolution | < 5 ms p95 | a map lookup |
Carry coverage into a write response (coverage_carry) | < 5 ms p95 | every write response carries the coverage change; the cold and whole-scope coverage reports are recorded with no target |
The write target is restated per hardware class because a durable write cannot be faster than the drive's flush. On a consumer NVMe drive under Linux one flush costs about 2.5 ms; on a Mac's internal SSD a full flush costs about 4 ms. A drive with power-loss protection flushes in well under 0.1 ms. The budget for rdy's own work on a write is under 1 ms on top of one flush.
rdy acknowledges a write only after one durable flush; no target is met at the cost of durability.
What the quality gate measures
cargo qa runs a perf tier over a fixed workload: a seeded project of about 10k blocks, identical on every run, timed operation by operation. With --deep the same operations run again on a project of about 50k blocks, under names with the suffix _50k. See Quality gate.
since 0.60.0
| Operation name | What it times |
|---|---|
write_single | one single-claim write, flush included |
write_batch_200 | one write of 200 claims |
propose_land_500_flat | propose and land 500 new docs |
daemon_write_single | one write through a running daemon, over the socket, in the same shape as write_single |
daemon_write_8_clients | one MCP write through the daemon while seven other MCP clients write; recorded, no target, because the write target is for one writer |
context, impact | one context query and one impact query, caches dropped first |
resolve_path | resolving a doc path to its id |
tree_full, tree_full_memo | the full tree, cold and memoized |
view_materialize_cold, view_materialize_incremental | building a view from scratch, and adding one change to a built view |
version_position, version_position_cached | the version position, cold and cached |
render | a full static site render |
diff_since | the block and word diff from the tier's tag to canon, as render builds it; recorded, no target |
render_cold | a full site render after a fresh open, which also reads canon's tensions for the disagreements page; recorded, no target |
site_build_live | the live site's full build of canon in memory, with each page's revision; recorded, no target |
site_event_after_land | a body edit landed through the daemon, until the open page of that doc gets its reload event |
site_event_after_view_write | the same for a commit into a view, with the open page in review mode |
site_fanout_32 | the diff of two builds of canon and one event to each of 32 open pages; recorded, no target |
site_get_page | one request for the longest doc page from a warm build, over the daemon's loopback port |
site_versions_page | the live versions page, with the docs each open view and proposal changes counted from scratch; recorded, no target |
site_versions_page_warm | the same page after one commit to one view, with only that view counted again; recorded, no target |
site_profile_build | the live build of a public profile of canon, with its reference check, page bytes and landings chip; recorded, no target |
site_profile_review | the same build through the profile in an open proposal, with both selected sides compared; recorded, no target |
site_profile_menu | the versions page seen from a proposal and a profile, with the Profiles list and its doc counts; recorded, no target |
site_profile_get_page | one request for a doc page on a profile-only site, from a warm build, over its loopback port; recorded, no target |
site_profile_event_after_land | from the return of a landing until the open profile-only page gets its reload event; recorded, no target |
export_import | a format-3 export of canon, which only the engine writes, and an import into a fresh project |
dump | the whole project written as one dump file; recorded, no target |
load | that dump rebuilt into a new directory, with the index build and fsck; recorded, no target |
redaction_report | the complete report of a redaction of every version of one block, on a copy of the project; recorded, no target |
redaction_land | the person's approval of that redaction, through the removal of its payloads; recorded, no target |
redaction_open | opening the project after the removal, with one read of canon; recorded, no target |
redaction_dump | the project after the removal written as one dump file, with its dropped frames; recorded, no target |
dump_increment | an increment of 100 sealed batches after a full dump; recorded, no target |
load_chain | a full dump and two increments checked and loaded into a new directory; recorded, no target |
load_chain_stop | the same chain loaded at a stop before a removal, with its carried records; recorded, no target |
export_md, export_html, export_pdf | canon printed as a Markdown tree, one HTML file and one PDF, each written whole; typical tier only; recorded, no target |
clone | the project cloned into a new directory, with the index build, the origin and fsck; recorded, no target |
pending | the needs-you queue for the project's person, with every open proposal carded; recorded, no target |
answer_later | one relayed Later answer: it binds the answer to its card, writes one ANSWER record and flushes once; recorded, no target |
cold_open, cold_open_lagging | opening the project, and opening it with an index that lags the log |
daemon_cold_start | the start of the daemon until it reports ready |
invariants_check_all | the invariant checker over canon and every open view, then rdy fsck; recorded, no target |
check_rules_change | a write of one claim with 20 one-link neighbours under 16 pack rules, its rule report in on_change.checks included; recorded, no target |
check_rules_propose | a propose of a 100-block change set, with one full scan of the 16 rules; recorded, no target |
check_request_case | one meaning_preservation case of 20 editorial blocks, and its request; recorded, no target |
check_queue | the open requests listed and the one eligible independent request claimed, among 1,000 requests with 500 answered; recorded, no target |
brief_vector_neighbors | a briefing of a doc of 20 covered content blocks, each scored against 10,000 claims on a new snapshot, two rows each, each neighbor once; fixed limit |
write_vector_neighbors | the vector rows of ten created claims on the state the write produced, three rows each; the weights and the advice, not the durable write; fixed limit |
search_like | a like search of one claim over 10,000 claims on a new snapshot, with its words and its link; fixed limit |
search_relevance | sort: relevance over the 1,000 claims that hold a query word, among 10,000, on a new snapshot; fixed limit |
Each operation records its median and p95 against a baseline keyed by machine class: operating system, CPU and storage, never a hostname.
since 0.29.0
An operation fails the perf tier when its median exceeds the baseline by more than 25% and by more than a 2 ms floor. Until most planned features ship, this rule is paused: an operation with a target fails only when its median is twice its baseline or more. An operation with no target, or with a proposed target only, is reported and never fails. With or without a baseline, an operation fails when its p95 is over its spec ceiling. Only these operations have a ceiling, and a _50k operation has none:
- 5 ms:
tree_full,tree_full_memo,brief_docandversion_position; - 50 ms:
view_materialize_coldandview_cold; - 1 ms:
view_materialize_incrementalandview_incremental; - 2 s:
render,cold_open,cold_open_lagging,daemon_cold_startandopen_chosen_alts_100.
The fixed limits of Four vector operations have a fixed p95 limit. A fixed limit is a judgement, not also fail the tier when a p95 is over them, with or without a baseline.
since 0.60.0
Four vector operations have a fixed p95 limit. A fixed limit is a judgement, not a measurement: rdy never compares it to a baseline, and a miss is a finding.
- 50 ms:
brief_vector_neighborsandwrite_vector_neighbors; - 100 ms:
search_likeandsearch_relevance.
Each runs on a new snapshot, so it includes the build of the weights. A briefing of more than 20 content blocks does no vector work, so brief_doc keeps its ceiling of 5 ms.
since 0.29.0
Under the 25% rule, an operation that ends in a durable flush gets a 50% margin instead, because its median moves with the disk. The paused rule has no margin by operation class and no floor. On a machine class with no baseline, the tier compares nothing, writes nothing and fails. cargo qa --rebaseline writes the run as the class's baseline after an intended change, and the diff is reviewed in the commit. A _50k operation carries the typical tier's target, applied at 50k blocks, and no ceiling. Timing budgets live in the perf tier only; a correctness test never asserts a duration.
since 0.2.0
The live site's targets are proposals. The perf tier reports them, and rdy sets them as ceilings only after two bench runs agree. The full render now builds every page in memory before it writes, as the live site needs. At the large tier, this raised the median of render_50k from 712 ms to 874 ms. This is the accepted cost of the live site.
since 0.31.0
rdy_diff runs the engine's diff on every page, because counts cover the whole diff. PERF.md holds one information run from the bench: a canon-against-landing diff with 100 entries took 397 ms at 59,460 blocks. The decision names 100k blocks. The run lands about 60,000 blocks because a first landing of 90,000 stores no assessment today. No target applies.
since 0.32.0
The four check ops make no latency promise. Readiness runs every pack rule over every block of the landing projection, and each queue read runs readiness. So their cost grows with the number of rules times the number of blocks. One bench run recorded these medians: check_rules_change 0.82 ms, check_rules_propose 49 ms, check_request_case 1.7 ms and check_queue 548 ms. They are recorded values, not targets.
since 0.33.0
Neighbor items raise two medians against rdy 0.32.0, under the paused rule of the perf tier. brief_inflight_50 moved from 0.149 ms to 0.275 ms, 1.85 times. m3a_landing_ties_10000 moved from 54.1 ms to 99.3 ms, 1.84 times. brief_doc moved from 1.045 ms to 1.70 ms, with a p95 of 3.25 ms, under its 5 ms target. This is the accepted cost of neighbors, and no operation reached twice its baseline.
Two ceiling runs of the same release missed. A full render at 100k blocks took a median of 2,893 ms against 2 s. The slowest of 10 briefings of a doc at 100k blocks took about 100 ms against 25 ms. rdy's performance record keeps both, and neither blocks a release.
The deep run of 2026-11-04 measured 262 rows: 98 with a target and 164 with no target or a proposed target. The typical tier held 10,000 blocks, and the check operations read 9,930 of them. The large tier held 50,000 blocks, and the landing operations ran at 1, 100, 1,000 and 10,000 blocks. Five operations used fixed fixtures. They are a 40-claim stable change, 20 selected docs with 20 visible refs, and a log with one removed 64 KiB blob. On ext4 that compaction punched 61,440 bytes and left 16,384 allocated.
No operation crossed a spec ceiling. Four operations were at twice their baseline or more: daemon_read_during_big_write 2.67 times, brief_inflight_50 2.27, brief_inflight_50_50k 2.41 and propose_chosen_alts_100 2.24. The same four were at twice their baseline or more in each recent deep run. rdy's performance record keeps them as known slowdowns, and the baseline did not change.
Seventeen rows have a p95 over the figure in their target. They are reported, and none fails the gate:
context41.5 ms,impact40.9 ms andresolve_path31.2 ms, measured cold, against the 5 ms warm target;daemon_mcp_overview6.1 ms,brief_inflight_5059.0 ms,entity_search60.6 ms andsearch_coverage_sort22.4 ms, against 5 ms;land_rebase_50169.4 ms, against 100 ms;- at 50k blocks,
context_50k187.9 ms,impact_50k186.7 ms,resolve_path_50k134.6 ms,brief_doc_50k11.3 ms andbrief_inflight_50_50k225.3 ms, against 5 ms; - at 50k blocks,
view_materialize_cold_50k138.6 ms,view_materialize_after_rebase_50k135.6 ms andview_cold_50k137.4 ms, against 50 ms; - at 50k blocks,
land_rebase_50_50k702.6 ms, against 100 ms.