Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: testing: add CPU name to standard benchmark labels #39214
Currently only goarch and goos are printed as bechmark labels.
This proposal suggests to add the CPU name as
This will only happen when
Example with prototype http://golang.org/cl/234977:
Optionally disabled/enabled CPU features could be printed in addition:
This will help to understand, reproduce and document benchmark results better in context of different system configurations.
Some commit messages with benchmarks made by Go contributors already contain this information, but added manually:
Related Proposal: #28398
@mvdan agreed. This could potentially be expanded in the future with a flag for printing even more information (ram, caches, kernel, ...) but I would leave that to a future extra and separate proposal.
The same information could then be easily added to e.g. go env or other commands with information for bug reporting if considered helpful.