testing: add func AllocsPerRun(func()) #4461
Closed
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. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by jgrahamc:
The text was updated successfully, but these errors were encountered: