From 05dc2d0373cc8d7b0dc4da63a03a7850e4fefdc8 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 3 Nov 2026 04:12:49 +0100 Subject: add propagation benchmark --- src/simtest/soak.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/simtest/soak.rs') diff --git a/src/simtest/soak.rs b/src/simtest/soak.rs index 6906238..db4ba60 100644 --- a/src/simtest/soak.rs +++ b/src/simtest/soak.rs @@ -88,7 +88,7 @@ async fn soak_25_nodes() { /// The upper bound of the bucket in which the `quantile` of changes is reached; None if /// only in the last (unbounded) one. -fn percentile_bound(propagation: &Propagation, quantile: f64) -> Option { +pub(super) fn percentile_bound(propagation: &Propagation, quantile: f64) -> Option { let wanted = (propagation.count as f64 * quantile).ceil() as u64; let mut seen = 0; for (bound, count) in propagation.buckets() { -- cgit v1.3.1