Skip to content

Instantly share code, notes, and snippets.

@comtom
Last active September 27, 2018 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save comtom/45da8ac078173dc7cd6bc150157322a7 to your computer and use it in GitHub Desktop.
Save comtom/45da8ac078173dc7cd6bc150157322a7 to your computer and use it in GitHub Desktop.
1.sh
#!/bin/bash
go test -cpuprofile cpu.prof -memprofile mem.prof -bench .
pprof -http=:6060 -alloc_objects mem.prof
pprof -http=:6060 cpu.prof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment