Skip to main content

Crate mobench_runtime

Crate mobench_runtime 

Source
Expand description

Small, provider-free runtime primitives shared by Mobench surfaces.

Structs§

CliV1Summary
The released CLI’s integer summary semantics.
Distribution
A timing distribution used by compatibility-specific summaries.
ResourceAccumulator
Incrementally aggregate partial resource measurements without overflow.
ResourceAggregate
Aggregated resource measurements across the samples that provided them.
ResourceSample
Optional resource measurements for one benchmark iteration.
SdkV1Summary
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 / total to the nearest whole percent without intermediate overflow.
saturating_sum_u64
Sum u64 values with a u128 accumulator and saturate at u64::MAX.
saturating_u128_to_u64
Saturate a u128 value into the public u64 wire range.
saturating_usize_to_u32
Saturate an in-memory collection length into the public u32 wire 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.