Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
testing: Benchmark doesn't collect result of sub-benchmarks #18815
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
changed the title
testing.Benchmark() function doesn't collect result of sub-benchmarks.
Jan 27, 2017
@robpike I always thought this was an intended and documented use case for the testing package. Otherwise, what is the purpose of the Benchmark function?
The purpose of the Benchmark function is to run a benchmark under the auspices of "go test".
Here is the start of the package docs: