Skip to main content

Module bench

Module bench 

Source
Expand description

Lightweight reproducible benchmark helpers (JOE-1606).

Full hardware matrix runs live in scripts/bench_smoke.sh and produce machine-readable JSON. This module defines the schema and micro-measurements that unit tests / PR smoke can exercise without pinned model downloads.

Structs§

BenchReport
Machine-readable benchmark run.
BenchSample
One timed sample.
SmokeBudgets
Soft regression thresholds for smoke samples (profile-specific multipliers).

Enums§

BenchProfile
Named reference profile for budgets.

Functions§

mean_ms
percentile_ms
sample_pcm_push
Micro-bench: ring-buffer push throughput (PR smoke safe).
sample_srt_stream
Micro-bench: SRT stream format for N segments.
time_iters
Run f for iters times; return sorted wall durations.