GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to see, how many memory hugo consumes in the same way as go test -bench=. --benchmem do.
go test -bench=. --benchmem
But it's not the question, it's feature request: it would be great to add --benchmem flag to benchmark command🙏
Yes, we should maybe refit that command to a Go benchmark ...
Also see https://github.com/bep/hugo-benchmark
I think, it could be implemented like that:
var mem runtime.MemStats
before := mem.Alloc
after := mem.Alloc
memUsage := after - before
// print memUsage
commands: Make benchmark command more useful
* Add information about average time, memory consumption and
* Fix situation, when user provides memprofile and cpuprofile, but
cpuprofile will not created.