... | ... | @@ -94,7 +94,9 @@ MacBook-Air:nonrepeating$ go test -bench . -cpuprofile cpu.out |
|
|
|
|
|
|
|
|
// 查看性能数据
|
|
|
|
|
|
MacBook-Air:nonrepeating$ **go tool pprof cpu.out**
|
|
|
|
|
|
Type: cpu
|
|
|
Time: Jan 12, 2022 at 11:42pm (CST)
|
|
|
Duration: 1.30s, Total samples = 1.08s (82.91%)
|
... | ... | |