golang/go

testing: add -benchsplit to get more data points

Open

#19,128 opened on Feb 16, 2017

View on GitHub
 (21 comments) (1 reaction) (0 assignees)Go (19,008 forks)batch import
FeatureRequestNeedsFixProposalProposal-Acceptedhelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide