Skip to content

Instantly share code, notes, and snippets.

@yifan-gu
Created July 5, 2014 22:15
Show Gist options
  • Save yifan-gu/b67fd18aa0b1db7d514c to your computer and use it in GitHub Desktop.
Save yifan-gu/b67fd18aa0b1db7d514c to your computer and use it in GitHub Desktop.
benchmark of the messenger/codec/gogoprotobuf_codec.go
=== RUN TestGoGoProtobufCodec
--- PASS: TestGoGoProtobufCodec (0.00 seconds)
PASS
BenchmarkGoGoProtobufWithoutReflectMarshal 5000000 699 ns/op
BenchmarkGoGoProtobufWithoutReflectUnmarshal 1000000 1332 ns/op
BenchmarkGoGoProtoBufCodecMarshal 200000 7667 ns/op
BenchmarkGoGoProtoBufCodecUnmarshal 500000 3994 ns/op
ok github.com/go-distributed/messenger/codec 9.216s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment