{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/24296","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/24296/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/24296/comments","events_url":"https://api.github.com/repos/golang/go/issues/24296/events","html_url":"https://github.com/golang/go/issues/24296","id":303071787,"number":24296,"title":"cmd/go: report allocations in the BenchmarkResult struct Stringer","user":{"login":"titpetric","id":233360,"avatar_url":"https://avatars0.githubusercontent.com/u/233360?v=4","gravatar_id":"","url":"https://api.github.com/users/titpetric","html_url":"https://github.com/titpetric","followers_url":"https://api.github.com/users/titpetric/followers","following_url":"https://api.github.com/users/titpetric/following{/other_user}","gists_url":"https://api.github.com/users/titpetric/gists{/gist_id}","starred_url":"https://api.github.com/users/titpetric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titpetric/subscriptions","organizations_url":"https://api.github.com/users/titpetric/orgs","repos_url":"https://api.github.com/users/titpetric/repos","events_url":"https://api.github.com/users/titpetric/events{/privacy}","received_events_url":"https://api.github.com/users/titpetric/received_events","type":"User","site_admin":false},"labels":[{"id":373540105,"url":"https://api.github.com/repos/golang/go/labels/FeatureRequest","name":"FeatureRequest","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-07T12:02:32Z","updated_at":"2018-03-08T11:59:58Z","closed_at":null,"author_association":"NONE","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n\r\n### What version of Go are you using (`go version`)?\r\n\r\n1.10\r\n\r\n### Does this issue reproduce with the latest release?\r\n\r\nYes\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n\r\nNot applicable\r\n\r\n### What did you do?\r\n\r\nCall `testing.Benchmark` when using `b.ReportAllocs()` in the benchmark function.\r\n\r\n### What did you expect to see?\r\n\r\n```\r\nNew  1000000          1232 ns/op        0 B/op         0 allocs/op\r\nA.New  1000000        1169 ns/op        0 B/op         0 allocs/op\r\n```\r\n\r\n### What did you see instead?\r\n\r\n```\r\nNew  1000000          1171 ns/op\r\nA.New  1000000        1115 ns/op\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/371467397","html_url":"https://github.com/golang/go/issues/24296#issuecomment-371467397","issue_url":"https://api.github.com/repos/golang/go/issues/24296","id":371467397,"user":{"login":"titpetric","id":233360,"avatar_url":"https://avatars0.githubusercontent.com/u/233360?v=4","gravatar_id":"","url":"https://api.github.com/users/titpetric","html_url":"https://github.com/titpetric","followers_url":"https://api.github.com/users/titpetric/followers","following_url":"https://api.github.com/users/titpetric/following{/other_user}","gists_url":"https://api.github.com/users/titpetric/gists{/gist_id}","starred_url":"https://api.github.com/users/titpetric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titpetric/subscriptions","organizations_url":"https://api.github.com/users/titpetric/orgs","repos_url":"https://api.github.com/users/titpetric/repos","events_url":"https://api.github.com/users/titpetric/events{/privacy}","received_events_url":"https://api.github.com/users/titpetric/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T11:59:58Z","updated_at":"2018-03-08T11:59:58Z","author_association":"NONE","body":"@andybons it's `fmt.Println(result, result.MemString())` instead of just `fmt.Println(result)`."}}
{"actor":{"display_login":"titpetric"}}