The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(profile): document the new rss-bench.sh driver script
Steven Enamakel42c88f96df5c
diff --git a/scripts/profile/README.md b/scripts/profile/README.mdindex c23dc296fb..cbd69fa07a 100644--- a/scripts/profile/README.md+++ b/scripts/profile/README.md@@ -4,13 +4,27 @@ Reproducible benchmarking scripts for the OpenHuman Rust core as an embeddedlibrary (no RPC server), built around the `library-profile` and `rss-bench`binaries (see `crates/openhuman-cli/src/bin/library_profile/main.rs`).-Five driver scripts: `library-bench.sh` (per-scenario RSS/duration),+Six driver scripts: `library-bench.sh` (per-scenario RSS/duration),`library-cpu.sh` (samply), `library-heap.sh` (dhat), `library-fleet.sh`-(fleet-scale sweep + budget gate), and `library-instances.sh` (multi-process-instance sweep).+(fleet-scale sweep + budget gate), `library-instances.sh` (multi-process+instance sweep), and `rss-bench.sh` (embedded-roster RSS, #5046).++Benchmarks run from these scripts, not in CI.## Scripts+### `rss-bench.sh` — embedded agent-roster RSS (#5046)++Builds the stripped-release `rss-bench` binary, runs its fixture tests, then+measures steady-state RSS/PSS of 5 fresh processes × {1, 8} agents against the+20 MiB target and 30 MiB hard cap. This was the report-only `rust-rss-bench`+CI job until benchmarks moved out of CI.++```bash+./scripts/profile/rss-bench.sh # build + run, JSON to target/profile/rss-bench.json+./scripts/profile/rss-bench.sh --skip-build --out /path/rss.json+```+### `library-bench.sh` — RSS/duration benchmarkBuilds `library-profile` + `rss-bench`, runs each scenario N times as a freshdiff --git a/scripts/profile/rss-bench.sh b/scripts/profile/rss-bench.shnew file mode 100755index 0000000000..841f8c0c20--- /dev/null+++ b/scripts/profile/rss-bench.sh@@ -0,0 +1,37 @@+#!/usr/bin/env bash+# rss-bench.sh — steady-state RSS of an embedded openhuman_core agent roster+# (#5046): 5 fresh processes x {1, 8} agents, reported against the 20 MiB+# target and 30 MiB hard cap.+#+# Formerly the report-only `rust-rss-bench` CI job; benchmarks run from+# scripts, not CI. The build is a stripped release (thin LTO, one codegen+# unit), so expect a long first compile.+#+# Usage: ./scripts/profile/rss-bench.sh [--out FILE] [--skip-build]+# --out FILE raw samples as JSON (default target/profile/rss-bench.json)+# --skip-build reuse target/release/rss-bench+set -euo pipefail++cd "$(dirname "$0")/../.."++out="target/profile/rss-bench.json"+build=1+while (($#)); do+ case "$1" in+ --out) out="$2"; shift 2 ;;+ --skip-build) build=0; shift ;;+ -h | --help) sed -n '2,13p' "$0"; exit 0 ;;+ *) echo "unknown argument: $1" >&2; exit 64 ;;+ esac+done++if ((build)); then+ echo "[rss-bench] building stripped-release rss-bench" >&2+ cargo build --release --features rss-bench --bin rss-bench+ echo "[rss-bench] running fixture tests" >&2+ cargo test --features rss-bench --bin rss-bench+fi++mkdir -p "$(dirname "${out}")"+./target/release/rss-bench --out "${out}"+echo "[rss-bench] raw samples: ${out}" >&2