Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
1.10
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Not applicable
What did you do?
Call testing.Benchmark when using b.ReportAllocs() in the benchmark function.
What did you expect to see?
New 1000000 1232 ns/op 0 B/op 0 allocs/op
A.New 1000000 1169 ns/op 0 B/op 0 allocs/op
What did you see instead?
New 1000000 1171 ns/op
A.New 1000000 1115 ns/op
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version)?1.10
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env)?Not applicable
What did you do?
Call
testing.Benchmarkwhen usingb.ReportAllocs()in the benchmark function.What did you expect to see?
What did you see instead?