{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/15126","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/15126/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/15126/comments","events_url":"https://api.github.com/repos/golang/go/issues/15126/events","html_url":"https://github.com/golang/go/issues/15126","id":145966129,"number":15126,"title":"testing: -bench regexp doesn't apply to subbenchmarks","user":{"login":"valyala","id":283442,"avatar_url":"https://avatars.githubusercontent.com/u/283442?v=3","gravatar_id":"","url":"https://api.github.com/users/valyala","html_url":"https://github.com/valyala","followers_url":"https://api.github.com/users/valyala/followers","following_url":"https://api.github.com/users/valyala/following{/other_user}","gists_url":"https://api.github.com/users/valyala/gists{/gist_id}","starred_url":"https://api.github.com/users/valyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valyala/subscriptions","organizations_url":"https://api.github.com/users/valyala/orgs","repos_url":"https://api.github.com/users/valyala/repos","events_url":"https://api.github.com/users/valyala/events{/privacy}","received_events_url":"https://api.github.com/users/valyala/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mpvl","id":6445383,"avatar_url":"https://avatars.githubusercontent.com/u/6445383?v=3","gravatar_id":"","url":"https://api.github.com/users/mpvl","html_url":"https://github.com/mpvl","followers_url":"https://api.github.com/users/mpvl/followers","following_url":"https://api.github.com/users/mpvl/following{/other_user}","gists_url":"https://api.github.com/users/mpvl/gists{/gist_id}","starred_url":"https://api.github.com/users/mpvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpvl/subscriptions","organizations_url":"https://api.github.com/users/mpvl/orgs","repos_url":"https://api.github.com/users/mpvl/repos","events_url":"https://api.github.com/users/mpvl/events{/privacy}","received_events_url":"https://api.github.com/users/mpvl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/31","html_url":"https://github.com/golang/go/milestones/Go1.7","labels_url":"https://api.github.com/repos/golang/go/milestones/31/labels","id":1414133,"number":31,"title":"Go1.7","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":300,"closed_issues":275,"state":"open","created_at":"2015-11-16T16:57:07Z","updated_at":"2016-04-22T13:42:40Z","due_on":"2016-07-31T07:00:00Z","closed_at":null},"comments":8,"created_at":"2016-04-05T11:55:55Z","updated_at":"2016-04-22T13:42:41Z","closed_at":"2016-04-22T13:42:40Z","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n1. What version of Go are you using (`go version`)?\r\n```\r\ngo version devel +1f5b1b2 Mon Apr 4 10:05:05 2016 +0000 linux/amd64\r\n```\r\n\r\n2. What operating system and processor architecture are you using (`go env`)?\r\n```\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build773049645=/tmp/go-build -gno-record-gcc-switches\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\n```\r\n\r\n3. What did you do?\r\n\r\nGiven the following subbenchmarks:\r\n\r\n```go\r\nfunc BenchmarkFoo(b *testing.B) {\r\n    b.Run(\"sub1\", subbenchmark1)\r\n    b.Run(\"sub2\", subbenchamrk2)\r\n}\r\n```\r\n\r\nI wanted to run only `BenchmarkFoo/sub1` with:\r\n\r\n```\r\ngo test -bench=BenchmarkFoo/sub1\r\n```\r\n\r\n4. What did you expect to see?\r\n\r\nOnly `BenchmarkFoo/sub1` should be executed\r\n\r\n5. What did you see instead?\r\n\r\nNo benchmarks are executed."}}