For #18177, we need to make tradeoffs between worst-case latency and average throughput for the functions in question.
It's relatively easy to measure the average throughput today using benchmarks with the testing package.
It would be nice if I could use those same benchmarks to measure the distribution of timings across iterations. That isn't really feasible using (*B).N with caller-side iteration, but it might at least be possible to tap into (*PB).Next to get some idea of the latency between calls for parallel benchmarks.
For #18177, we need to make tradeoffs between worst-case latency and average throughput for the functions in question.
It's relatively easy to measure the average throughput today using benchmarks with the
testingpackage.It would be nice if I could use those same benchmarks to measure the distribution of timings across iterations. That isn't really feasible using
(*B).Nwith caller-side iteration, but it might at least be possible to tap into(*PB).Nextto get some idea of the latency between calls for parallel benchmarks.