FFFF docs(bench): refresh the performance envelope for the 3.0.0-alpha (#942) by adityamukho · Pull Request #962 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,19 +293,19 @@ See [ROADMAP.md](ROADMAP.md) for planned work and current direction.

## Performance

Performance measurements for the v3 release (format v8), taken during development at up to 10M facts on an otherwise idle server over two rounds (see [BENCHMARKS.md](docs/BENCHMARKS.md#executor-removal-551) for every shape, RSS and the method):
Performance measurements for the v3.0.0-alpha release (format v8), refreshed on 2026-11-30 at `bcd74572b` with Rust 1.99.1, up to 10M facts on an otherwise idle dedicated benchmark server pinned to one NUMA node (see [BENCHMARKS.md](docs/BENCHMARKS.md#performance-envelope-v300-394) for every shape, RSS and the method):

| Workload | 100K facts | 1M facts | 10M facts |
|---|---:|---:|---:|
| Point lookup (bound entity + attribute, incl. `:as-of` / `:valid-at`), p50 / p99 | 18–21 µs / 25–39 µs | 18–20 µs / 22–37 µs | 18–20 µs / 22–27 µs |
| Entity with 1,000 versions, p50 / p99 | 0.29–0.30 / 0.31–0.35 ms | 0.29–0.30 / 0.30–0.36 ms | 0.29–0.30 / 0.32–0.37 ms |
| Open a file (RSS after open: 3 MiB) | 0.12–0.16 ms | 0.25–0.27 ms | 0.13–0.23 ms |
| Checkpoint after 1 new fact, p50 / p99 | 0.7–0.9 / 1.4–1.6 ms | 0.9–1.8 / 2.7–2.8 ms | 1.1–1.5 / 2.2–2.9 ms |
| Attribute scan (N/6 rows) drained in batches of 1,000, p50 | 23 ms | 0.25 s | 2.5 s |
| Selective 2-clause join (1 row), p50 | 38 µs | 37 µs | 37 µs |
| Rule query with a constant (magic sets, 5–7 rows), p50 | 1.1 ms | 1.5 ms | 1.9 ms |

The table above is the #551 snapshot. A later [focused UUID projection comparison](docs/BENCHMARKS.md#projected-uuid-lookup-batching-530-unreleased) measures the 1M-fact attribute scan at 262 → 136 ms p50 after batched dictionary reads (#530); the other table scales were not remeasured in that comparison.
| Point lookup (bound entity + attribute, incl. `:as-of` / `:valid-at`), p50 / p99 | 20–23 µs / 30–34 µs | 17–19 µs / 32–34 µs | 17–19 µs / 32–35 µs |
| Entity with 1,000 versions, p50 / p99 | 0.24 / 0.28–0.29 ms | 0.22 / 0.24–0.25 ms | 0.22 / 0.25 ms |
| Open a file (RSS after open: 3 MiB) | 0.144 ms | 0.255 ms | 0.409 ms |
| Checkpoint after 1 new fact, p50 / p99 | 0.712 / 1.22 ms | 0.942 / 1.97 ms | 1.09 / 3.30 ms |
| Attribute scan (N/6 rows) drained in batches of 1,000, p50 | 10.79 ms | 0.117 s | 1.18 s |
| Selective 2-clause join (1 row), p50 | 43 µs | 34 µs | 35 µs |
| Rule query with a constant (magic sets, 5–7 rows), p50 | 1.07 ms | 1.35 ms | 1.81 ms |

The table above is the #942 alpha snapshot. [Changes since the previous snapshot](docs/BENCHMARKS.md#changes-since-the-previous-snapshot) compares it with #551 and the later partial #530 measurements, including the slower file open and tail latencies at 10M.

Point lookups, time travel on one entity, and joins and rule queries that a constant makes selective stay flat at every tested size. Queries that read a whole attribute (scans, aggregates, joins with nothing selective) grow linearly with the facts they read, in bounded memory: the 1.67M-row scan at 10M facts holds one batch, 7 MiB. Windows and whole transitive closures hold their rows, and `OpenOptions::query_memory_limit` stops a query that passes it with `QRY-012`. Graphs over 10M facts are not tested.

Expand Down
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Completed — testing and documentation:
- Manual migration evidence (#838): native v7-to-v8 through 200k facts; Chromium/Firefox/WebKit through 20k facts, with separate read-only/reopen controls and bounded post-migration cursor churn. [Results, frozen fixtures and exclusions](docs/benchmarks/838-migration/README.md); no new nightly route or sustained-pin bound.
- Semantic permutations (#842): [correctness-target map and control limits](docs/benchmarks/842-semantic-permutations/README.md) for X07. The exclusion stands; no nightly route or acceptance gate is added.
- Failure paths (#843): [correctness-target map](docs/benchmarks/843-failure-correctness/README.md) for X08. The benchmark exclusion stands; #865 closed the heavy WAL replay gap with the passing `one_million_fact_wal_entry_replays_on_open` acceptance test.
- Release-cut feature re-audit (#844): [every production change since the measured revision, with its benchmark disposition](docs/bench-coverage-v3.md#release-cut-feature-re-audit-844), at v3 head `33b4b165c`. OPFS (#441) is excluded and carried to v3.next with the profiler (#185) and rule persistence (#241); no nightly route or gate changes.
- Release-cut feature re-audit (#844): [every production change since the measured revision, with its benchmark disposition](docs/bench-coverage-v3.md#release-cut-feature-re-audit-844), at v3 head `33b4b165c`. The alpha performance envelope was refreshed at `bcd74572b` on 2026-11-30 (#942; [snapshot](docs/BENCHMARKS.md#performance-envelope-v300-394)). OPFS (#441) is excluded and carried to v3.next with the profiler (#185) and rule persistence (#241); no nightly route or gate changes.
- Manual shape evidence (#841): [native shape sweeps, recursive controls and sustained-reader experiments](docs/benchmarks/841-shape-sweeps/README.md), with explicit input, timeout and attribution limits. The small-nightly recommendation is separate from execution; this audit adds no nightly route or release-acceptance gate.
- Expression keyword/ref equality (#774; on `v3`): resolve literal keywords once per operator, with memory bounded by the expression. [Measurements and regression coverage](docs/benchmarks/774-expression-keywords.md); performance-only, with no v2.x backport.
- Higher storage/WAL coverage gates and branch-coverage gates (#396; on `v3`: line and branch floors per file in `coverage-thresholds.toml`, checked on every PR)
Expand Down
Loading
Loading
0