Skip to content

docs: document the preview Rust port and add cross-port stage benchmark - #607

Merged
dmealing merged 7 commits into
mainfrom
fm/mo-rust-benchmark-harness
Nov 19, 2026
Merged

dmealing merged 7 commits into
mainfrom
fm/mo-rust-benchmark-harness

Conversation

@dmealing

@dmealing dmealing commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What changed

Cross-port stage benchmark (scripts/bench-load/stages.py, with a Java warm-load driver, gen-model.py --unique-names, and --dir / --json on the load_bench example). It runs TypeScript, Python, C#, Java, Kotlin and Rust over the same model, stage by stage:

  • load: warm load and validate
  • gen-noop: the generation command with nothing changed
  • gen-full: generation from clean output
  • gen-edit: regeneration after one entity gains a field

Each stage is the median of N runs with peak RSS, written to one report.json and one Markdown table. It never gates on a threshold. The default model is the public 20x fitness fixture. --project <path> --out <dir> runs the same stages on a private project: the metadata and its config are copied to scratch, and --out must be outside the repository, so a private run never lands in the repo.

Rust stages skipped pending cargo meta gen: the three Rust generation stages (gen-noop, gen-full, gen-edit) print "not available yet" while the command does not exist, and are picked up automatically once it does. Rust load is measured through load_bench --dir. Kotlin has no load row of its own (it loads through the Java loader).

Rust documentation: new docs/ports/rust.md (preview wording, what works, what does not exist yet, planned cargo meta, the cargo-meta crates.io name note, build and test, the examples/tasks-axi-rust/ pointer), linked from the README, docs/README.md and language-differences.md. ADR-0065 status moved to Accepted (2026-11-19) on the captain's decision. scripts/bench-load/README.md is the single owner of benchmark usage. CHANGELOG [Unreleased] entry added, and its yaml-conformance figure corrected to 18 of 19.

Nothing is published and no version changes. server/rust is touched only in the load_bench example.

Validation

  • scripts/ci-local.sh --only gates and --only rust passed locally before the gate.
  • no-mistakes took one run (review fix rounds folded into it): the review fixed --project handling of the project's config (copied, sources rewritten, shared install step for every port, with a regression test), the anonymity wording and the libraries-gap note. Document fixed the ADR status, a docstring clause and the doc ownership.
  • Not covered: the harness is hand-run tooling with no CI lane. The Rust generation stages are untested against a real cargo meta.

@dmealing
dmealing merged commit e5d599e into main Nov 19, 2026
10 checks passed
@dmealing
dmealing deleted the fm/mo-rust-benchmark-harness branch November 19, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant