-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: use of -bench should force -p=1. #5662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
Created a CodeReview Issue: https://golang.org/cl/13321045/ |
Replied on the issue, but here too: This is the wrong hammer. There is already a dependency graph in the tool, and if there are things that should not be run at the same time, you can introduce dependencies to ensure that. It's fine to run the builds in parallel, and setting -p=1 would stop that. Code already exists in cmd/go to do this: // If we are benchmarking, force everything to // happen in serial. Could instead allow all the // builds to run before any benchmarks start, // but try this for now. if testBench { for i, a := range builds { if i > 0 { // Make build of test i depend on // completing the run of test i-1. a.deps = append(a.deps, runs[i-1]) } } } What is wrong with that code? |
This issue was closed by revision 90f9192. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by gconnell@google.com:
The text was updated successfully, but these errors were encountered: