Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
testing: Benchmark shows zero allocations #20863
testing.Benchmark does not seem to produce valid memory stats any more:
The following program:
I'd expect it to print
like previous Go versions.
go version devel +eab99a8 Mon Jun 26 21:12:22 2017 +0000 linux/amd64
This is already documented
but if it was changed in go1.9 then I agree it's worth mentioning in release notes, too.