Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 425 Bytes

binary-serialize.md

File metadata and controls

13 lines (11 loc) · 425 Bytes

go test -bench=. -benchmem


goos: darwin
goarch: amd64
pkg: github.com/xkeyideal/mraft/benchmark/binary-serialize
BenchmarkBinaryEncode-4         10000000               214 ns/op             149 B/op          3 allocs/op
BenchmarkBinaryDecode-4         50000000                29.9 ns/op             8 B/op          1 allocs/op
PASS
ok      github.com/xkeyideal/mraft/benchmark/binary-serialize        4.059s