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
2 changes: 1 addition & 1 deletion bench/EGM.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This directory holds the benchmark crate, workload programs, memory-analysis too

- `Cargo.toml` defines the `script-bench` and `vm-string-memory` binaries and adapter features.
- [`run-memory-cohort.js`](run-memory-cohort.js) accepts a v2 protocol config and two binaries, retains separate warmup/workload/control processes, alternates paired lane order, and coordinates evidence generation. Warmups remain evidence and are excluded from metric statistics. [`cgroup-delegation.js`](cgroup-delegation.js) locates the usable delegated cgroup-v2 ancestor; [`publish-memory-analysis.js`](publish-memory-analysis.js) validates and writes memory cohort artifacts.
- [history/site-comparison.json](history/site-comparison.json) selects the retained cohort and workload labels used by the website and Rustdoc charts. Both read recorded times from [history/runs.jsonl](history/runs.jsonl).
- [history/site-comparison.json](history/site-comparison.json) selects the retained cohort and workload labels used by the website speed charts. The charts read recorded times from [history/runs.jsonl](history/runs.jsonl).
- The native harness and VM memory probe live in [`src/EGM.md`](src/EGM.md). Workload sources are grouped in [`workloads/EGM.md`](workloads/EGM.md). Wasm drivers and adapter code are in [`wasm/EGM.md`](wasm/EGM.md). Grabby build reporting is in [`grabby-builds/EGM.md`](grabby-builds/EGM.md).
- [`memory-protocol.js`](memory-protocol.js) owns protocol identities, version-coherence checks and adjusted-retention metric selection. [`memory-protocol.test.js`](memory-protocol.test.js) uses synthetic counters/timestamps to cover paired analysis, malformed evidence, historical parity and publication/merge isolation without measuring a host.
- The v2 supervisor samples total and anonymous cgroup charge with exact phase endpoints and holds the final epoch handshake for 100 ms of natural idle. The analyzer preserves v1 calculations, summarizes same-round control residuals for v2 and rejects missing controls/warmups, insufficient quiescence and mixed versions. History/current containers remain v1; v2 row metadata separates comparisons.
Expand Down
6 changes: 3 additions & 3 deletions bench/operations-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"measured_commit": "90bc2ae4c397f6e2bbb1af687cc8e30688010123",
"projected_measured_commit": "df240799de22ea8588865a7f594262053c2e92f1",
"measured_at_unix": 1792952860,
"latest_relevant_commit": "7bcdd32faf0da9ceaee8fcba4e22c282321da7a9",
"latest_relevant_committed_at_unix": 1795740069,
"pending_relevant_commit_count": 101,
"latest_relevant_commit": "bd94c214e12063117d75e1203483b99fefdcebe7",
"latest_relevant_committed_at_unix": 1795755722,
"pending_relevant_commit_count": 102,
"next_action": "Public progress history remains paused; private benchmark bridge comparisons do not add rows."
},
"landscape": {
Expand Down
2 changes: 1 addition & 1 deletion crates/rustia/EGM.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ by `node tools/sync-project-copy.js`.
- [`src/EGM.md`](./src/EGM.md) documents the facade implementation and exports.
- [`examples/EGM.md`](./examples/EGM.md) documents runnable usage examples.
- [compare.md](./compare.md) owns the comparison headings, rows, platform evidence and notes for Rustdoc, the homepage, and the browser demo. After an edit, run `node tools/sync-luau-comparison.js --write` from the repository root.
- [performance.svg](./performance.svg) shows a dated ci-bench cohort in the crate documentation. Run `node tools/check-readme-comparisons.js` to verify the chart against retained history.
- The comparison guide links to the [runtime speed charts](https://rustia.dev/#speed-comparison). Run `node tools/check-readme-comparisons.js` to verify the website chart's retained cohort.
- The package is built with `cargo check -p rustia`; `platform-adapters` is enabled by default for browser WebAssembly services.

## Invariants
Expand Down
4 changes: 4 additions & 0 deletions crates/rustia/compare.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ All seven compile Luau to bytecode. ulua, mlua and Lune also offer a native JIT.
6. <a id="luau-note-6"></a>mlua binds Rust to upstream C++ Luau and also supports Lua. The host can replace a registered module. CI builds for Emscripten. Bare Wasm needs WASI imports and Wasm exceptions. [Project](https://github.com/mlua-rs/mlua/blob/3c0fd858825a4756e5e858356c3c70ab83e64dbe/README.md) · [JIT](https://luau.org/performance/) · [Emscripten](https://github.com/mlua-rs/mlua/blob/3c0fd858825a4756e5e858356c3c70ab83e64dbe/.github/workflows/main.yml#L221-L259) · [Bare Wasm](https://github.com/mlua-rs/mlua/blob/3c0fd858825a4756e5e858356c3c70ab83e64dbe/docs/wasm32.md) · [Module API](https://docs.rs/mlua/0.12.3/mlua/struct.Lua.html#method.register_module)
7. <a id="luau-note-7"></a>Lune 0.11.1 uses mlua. It can load an edited script or bundle its VM and bytecode into a standalone executable. [Project](https://github.com/lune-org/lune/tree/v0.11.1) · [Executable](https://github.com/lune-org/lune/blob/v0.11.1/crates/lune/src/standalone/mod.rs) · [Desktop releases](https://github.com/lune-org/lune/blob/v0.11.1/.github/workflows/release.yaml) · [Script loading](https://github.com/lune-org/lune/blob/v0.11.1/crates/lune-std-luau/src/lib.rs)

# Performance

See the [runtime speed charts on rustia.dev](https://rustia.dev/#speed-comparison) for five workloads, exact timings, and benchmark methodology.

<!-- Generated platform image references -->

[rustia-linux]: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIiByb2xlPSJpbWciIGFyaWEtbGFiZWxsZWRieT0ibGludXgtaWNvbi10aXRsZSI+CiAgPHRpdGxlIGlkPSJsaW51eC1pY29uLXRpdGxlIj5MaW51eDwvdGl0bGU+CiAgPHJlY3QgeD0iLjUiIHk9Ii41IiB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHJ4PSIzIiBmaWxsPSIjZjRmNWY2IiBzdHJva2U9IiM3MzdiODAiLz4KICA8cGF0aCBmaWxsPSIjMWIyMjI2IiBkPSJNMTAgMmMtMi4yIDAtMy41IDEuOC0zLjUgNC40IDAgMi43LTIuNiA0LjQtMy4xIDcuMy0uMS43LjMgMSAuOS43bDEuNC0uOWMuMSAyLjIgMS45IDMuNyA0LjMgMy43czQuMi0xLjUgNC4zLTMuN2wxLjQuOWMuNi4zIDEgMCAuOS0uNy0uNS0yLjktMy4xLTQuNi0zLjEtNy4zQzEzLjUgMy44IDEyLjIgMiAxMCAyWiIvPgogIDxlbGxpcHNlIGN4PSIxMCIgY3k9IjEyLjMiIHJ4PSIzIiByeT0iNCIgZmlsbD0iI2ZmZiIvPgogIDxnIGZpbGw9IiNmZmYiPjxjaXJjbGUgY3g9IjguNyIgY3k9IjUuNyIgcj0iLjgiLz48Y2lyY2xlIGN4PSIxMS4zIiBjeT0iNS43IiByPSIuOCIvPjwvZz4KICA8cGF0aCBmaWxsPSIjYjY1NzA5IiBkPSJtOC4xIDcuMSAxLjktLjcgMS45LjctMS45IDEuNnpNOC40IDE1LjVjLjcuMSAxLjEuOC44IDEuNC0uNC43LTIuNS44LTMuNy40LjctMSAyLTEuOSAyLjktMS44Wm0zLjIgMGMtLjcuMS0xLjEuOC0uOCAxLjQuNC43IDIuNS44IDMuNy40LS43LTEtMi0xLjktMi45LTEuOFoiLz4KPC9zdmc+Cg==
Expand Down
121 changes: 0 additions & 121 deletions crates/rustia/performance.svg

This file was deleted.

2 changes: 1 addition & 1 deletion crates/rustia/src/EGM.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This directory implements the application API. [lib.rs](./lib.rs) privately comp

## Interface

- `Rustia` and `RustiaBuilder`: construct and operate a VM through facade-owned settings and errors. The crate Rustdoc opens with the README’s runnable example and a short task index. The task index leads into guides to table ownership, callbacks, and recovery after errors. The crate displays the comparison and archived performance chart. The `Rustia` type documents thread ownership.
- `Rustia` and `RustiaBuilder`: construct and operate a VM through facade-owned settings and errors. The crate Rustdoc opens with the README’s runnable example and a short task index. The task index leads into guides to table ownership, callbacks, and recovery after errors. The crate displays the project comparison and links to the website performance charts. The `Rustia` type documents thread ownership.
- `Chunk`: named source, optional rooted lexical environment, then `eval`, `eval_live`, `eval_serde`, `exec`, or transactional `install`.
- `OwnedValue`/`IntoRustia`/`FromRustia`: owned data conversions; `Value` and `Table`: rooted live guest values. `Rustia::create_vector` creates an immutable rooted Luau vector without broadening the owned snapshot model.
- `Function`/`Exports` and `HostFunction`: retained script calls and reusable host callbacks.
Expand Down
Loading
Loading