subms
A tiny, std-only perf-test harness for Rust programs. Records timed samples per stage, computes percentiles, and emits a stable JSON shape suitable for upload to submillisecond.com cookbook samples.
Zero external dependencies.
v0.1.0 — early development. The API is not yet stable.
Quick start
use PerfHarness;
let mut h = new;
h.input;
h.input;
h.meta;
let put = h.stage;
for _ in 0..50_000
h.write_json.unwrap;
Output shape
Stable JSON, matching the companion Java harness in the submillisecond.com cookbook:
License
Dual-licensed under either of MIT or Apache-2.0, at your option.