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
209 changes: 209 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ members = [
"crates/rmg-ffi",
"crates/rmg-wasm",
"crates/rmg-cli",
"crates/rmg-geom"
"crates/rmg-geom",
"crates/rmg-benches"
]
resolver = "2"

Expand All @@ -16,3 +17,12 @@ opt-level = "s"
lto = true
codegen-units = 1
strip = true

[profile.bench]
# Derive from release but optimize for throughput and faster builds
opt-level = 3
lto = false
codegen-units = 16
debug = true
panic = "abort"
strip = false
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ RMG provides atomic, in-place edits of recursive meta-graphs with deterministic

It’s the core of the Echo engine: runtime, assets, networking, and tools all operate on the same living graph of graphs.

## Developer: Running Benchmarks

- Command: `cargo bench -p rmg-benches`
- Purpose: Runs Criterion micro-benchmarks for the benches crate (`crates/rmg-benches`).
- Location: see `crates/rmg-benches/` for sources and configuration.

### Core Principles

| Principle | Description |
Expand Down
15 changes: 15 additions & 0 deletions crates/rmg-benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "rmg-benches"
version = "0.1.0"
edition = "2021"
publish = false
license = "Apache-2.0"

[dev-dependencies]
criterion = { version = "0.5", default-features = false, features = ["html_reports"] }
# Pin version alongside path to satisfy cargo-deny wildcard bans
rmg-core = { version = "0.1.0", path = "../rmg-core" }

[[bench]]
name = "motion_throughput"
harness = false
Loading