testing: single benchmark starts multiple time #23398
Closed
Labels
Comments
This is expected, the testing package runs your benchmark multiple times with increasing values of b.N. Closing as there is no bug to be found here. |
@davecheney thanks for your nice slides. |
You're welcome, I hope they're useful.
…On 10 January 2018 at 19:04, Jeff Ctor ***@***.***> wrote:
@davecheney <https://github.com/davecheney> thanks for your nice slides.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23398 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA69wfBXrvG67_OT9cnXMAkkIP9Bsks5tJG78gaJpZM4RY6c7>
.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?go version go1.10beta1 darwin/amd64
Does this issue reproduce with the latest release?
yes with go1.9.2
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jeffrey/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/jeffrey/GoSpace:/Users/jeffrey/GolangProjects"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/r9/zplfsltx4mx8yf05hrx0dnwm0000gp/T/go-build516212567=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
I was trying to make a benchmark with my mqtt client lib (libmqtt), using go test as
And here is the code
Once added the
client.Destroy(true)
call (which just cancel the context of the client, so all workers can return andclient.Wait()
will return) will result in multiple restartWhat did you expect to see?
benchmark starts and finishes both only one time
What did you see instead?
benchmark starts multiple times and finishes only one time
Here is the output for the benchmark
The text was updated successfully, but these errors were encountered: