Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove StartTimer/StopTimer from the bench loop
It can completely mess up the benchmark numbers for init functions that were too small. Moreover, it could make the -benchtime estimates be way off. For example, 'benchinit cmd/go' was taking over a minute to run the benchmark, instead of the expected ~1s. The benchtime estimate being off is likely the upstream issue golang/go#27217. The fact that StartTimer and StopTimer are expensive is being tracked in golang/go#20875.
- Loading branch information