15 lines
179 B
Go
15 lines
179 B
Go
|
|
package cmd
|
||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func BenchmarkCmd(b *testing.B) {
|
||
|
|
b.ReportAllocs()
|
||
|
|
//写入
|
||
|
|
for i := 0; i < b.N; i++ {
|
||
|
|
b.Log(MessageCommandIDRegistry.Change_Cloth)
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|