Posted in

Go泛型与反射性能对决:Benchmark实测显示,map[string]any在Go 1.23中比any泛型快2.1倍——但代价是类型安全归零

第一章:golang还有未来吗 … Go泛型与反射性能对决:Benchmark实测显示,map[string]any在Go 1.23中比any泛型快2.1倍——但代价是类型安全归零Read more

Posted in

Go字符串拼接性能陷阱:+ vs strings.Builder vs fmt.Sprintf vs bytes.Buffer在10万次循环中的纳秒级实测排名

第一章:Go字符串拼接性能陷阱: … Go字符串拼接性能陷阱:+ vs strings.Builder vs fmt.Sprintf vs bytes.Buffer在10万次循环中的纳秒级实测排名Read more

Posted in

Go benchmark结果波动超20%?用go test -benchmem -count=5 -benchtime=5s + benchstat生成置信区间报告的标准化流程

第一章:Go benchmark … Go benchmark结果波动超20%?用go test -benchmem -count=5 -benchtime=5s + benchstat生成置信区间报告的标准化流程Read more