-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
testing: add func AllocsPerRun(func()) #4461
Labels
Milestone
Comments
I guess this is my fault, but I don't know why. http://build.golang.org/ looks fine. Which version of FreeBSD? (if that matters... maybe?) Owner changed to @bradfitz. Status changed to Accepted. |
I haven't been able to reproduce this yet, could those on freebsd systems please try running this script over your lunch break. There was a prior commit, https://code.google.com/p/go/source/detail?r=1315abc581ed1d8aa7f3e12f8cd5f250099198cc, which should have fixed this problem. % cat stress.bash #!/bin/bash set -e while true ; do export GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]] go test std done |
The test looks broken to me. It runs a single iteration, but there can always be minor first-use noise. It should do something like 10 or 100 iterations and divide by the count to throw away the noise. Changing the bug to be about adding a function for counting mallocs to package testing. The TestCountMallocs in package fmt is a good template. Then we should use the function in this test and others. Labels changed: added priority-later, removed priority-triage. Owner changed to ---. |
This issue was closed by revision 9bfd3c3. Status changed to Fixed. |
gopherbot
added
fixed
Suggested
Issues that may be good for new contributors looking for work to do.
labels
Feb 3, 2013
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
by jgrahamc:
The text was updated successfully, but these errors were encountered: