Skip to main content

append_throughput

Function append_throughput 

pub async fn append_throughput<F: Fixture>(
    open: impl AsyncFn() -> F,
    params: BenchmarkParams,
) -> BenchmarkRecord
Available on crate feature bench only.
Expand description

(a) Append throughput: one batch of n events, unconditionally.

Repetition and warm-up are the caller’s emitter’s, not the harness’s — so one invocation is one batch, and a runner that wants a median over twenty runs the scenario twenty times around its own timer.

A fixture that states a MAX_EVENTS_PER_BATCH below n has the append reported as a refusal rather than as work: the ceiling is a declared fact about that store, and a benchmark that met one and reported zero events as a success would be measuring the refusal path.