Posted in

Go语言能快速开发项目?关键在“可预测性”——用go test -benchmem + pprof memprofile量化每行代码成本

第一章:Go语言能快速开发项目 … Go语言能快速开发项目?关键在“可预测性”——用go test -benchmem + pprof memprofile量化每行代码成本Read more

Posted in

Go test -benchmem显示Allocs/op=0却内存暴涨?暴露runtime.mcache本地缓存未计入profile及手动GC干扰基准测试真相

第一章:Go test -ben … Go test -benchmem显示Allocs/op=0却内存暴涨?暴露runtime.mcache本地缓存未计入profile及手动GC干扰基准测试真相Read more

Posted in

Go benchmark输出结果总不准?go test -benchmem -count=5 -benchtime=3s参数组合的黄金公式(附GC干扰消除法)

第一章:Go benchmark … Go benchmark输出结果总不准?go test -benchmem -count=5 -benchtime=3s参数组合的黄金公式(附GC干扰消除法)Read more