Posted in

【Go高性能数据结构实战】:用benchmark实测对比make(map[T]V, n) vs make(map[T]V),差出3.8倍吞吐量!

第一章:Go语言map构建的性能 … 【Go高性能数据结构实战】:用benchmark实测对比make(map[T]V, n) vs make(map[T]V),差出3.8倍吞吐量!Read more

Posted in

为什么benchmark显示make(map[int]int, N)在N>64时性能断崖下跌?——底层hash seed扰动机制揭秘

第一章:Go map初始化创建元 … 为什么benchmark显示make(map[int]int, N)在N>64时性能断崖下跌?——底层hash seed扰动机制揭秘Read more