Expand description
Small, provider-free runtime primitives shared by Mobench surfaces.
Structs§
- CliV1
Summary - The released CLI’s integer summary semantics.
- Distribution
- A timing distribution used by compatibility-specific summaries.
- Resource
Accumulator - Incrementally aggregate partial resource measurements without overflow.
- Resource
Aggregate - Aggregated resource measurements across the samples that provided them.
- Resource
Sample - Optional resource measurements for one benchmark iteration.
- SdkV1
Summary - The released SDK’s floating-point summary semantics.
Constants§
- MAX_
BENCHMARK_ COUNT - Maximum accepted measured or warmup iteration count at runtime boundaries.
Functions§
- rounded_
percent_ u64 - Round
part / totalto the nearest whole percent without intermediate overflow. - saturating_
sum_ u64 - Sum
u64values with au128accumulator and saturate atu64::MAX. - saturating_
u128_ to_ u64 - Saturate a
u128value into the publicu64wire range. - saturating_
usize_ to_ u32 - Saturate an in-memory collection length into the public
u32wire range. - sdk_
v1_ mean_ u64 - Calculate the released SDK’s floating mean over an allocation-free iterator.
- sdk_
v1_ std_ dev_ u64 - Calculate the released SDK’s sample standard deviation without allocating.