-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Milestone
Description
Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version)?
go version devel +1f5b1b2 Mon Apr 4 10:05:05 2016 +0000 linux/amd64
- What operating system and processor architecture are you using (
go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build773049645=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
- What did you do?
Given the following subbenchmarks:
func BenchmarkFoo(b *testing.B) {
b.Run("sub1", subbenchmark1)
b.Run("sub2", subbenchamrk2)
}I wanted to run only BenchmarkFoo/sub1 with:
go test -bench=BenchmarkFoo/sub1
- What did you expect to see?
Only BenchmarkFoo/sub1 should be executed
- What did you see instead?
No benchmarks are executed.
Reactions are currently unavailable