外观
"先测量,后优化"是 Go 性能工作的铁律。本章讲清 Benchmark、pprof、trace 的用法,并用一个完整的"基线→证据→优化→回归"案例演示证据驱动优化。
go tool pprof
go tool trace