Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestPerformance ¶
func TestPerformance()
Types ¶
type Performance ¶
type Performance struct{}
一段常用操作的性能分析
func (*Performance) V0 ¶
func (p *Performance) V0()
func (*Performance) V1 ¶
func (p *Performance) V1()
1、map初始化的时候指定容量,去除grow带来的耗时 2、strconv.FormatInt 改为 strconv.AppendInt,减少对象分配
Click to show internal directories.
Click to hide internal directories.