Two short bash scripts (bench.sh and trace.sh) simplify running Go benchmark tests with CPU/memory profiling and trace visualization. The scripts wrap `go test -bench` with pprof or trace flags, write output files to disk, and automatically open the visualizer in a browser on port 6060. A sample project layout and example output are provided. The author later turned the idea into a standalone tool at pprof.sh.

4m read timeFrom blainsmith.com
Post cover image
2 Impressions