tree: 6615fe0865f17e57908739b573ce3c9a5b41bff4 [search]
  1. compare.py
  2. diagnostics.mjs
  3. README.md
  4. summarize.py
  5. telemetry.py
  6. ts-adapter.mjs
scripts/rust/host-comparison/README.md

Offline Host Benchmark Harness

Linux benchmark scripts comparing production Host builds end-to-end over public RPC clients, real provider protocol decoders, SQLite state commits, and a local loopback SSE model server (no external API calls or GUI rendering).

Building and running

Build the Rust CLI and benchmark client in release mode on an idle Linux machine:

cargo build --release -p maka-cli --bin maka --example host_benchmark_client

Run a comparison campaign (compare.py --help lists workload flags, concurrency settings, and adapter options) and aggregate results into a JSON summary:

python3 scripts/rust/host-comparison/compare.py --help
python3 scripts/rust/host-comparison/summarize.py <results-dir> --output <summary.json>

compare.py verifies canonical transcript outputs across runs and records per-process RSS, CPU time, and I/O telemetry via telemetry.py.