Skip to content

Instantly share code, notes, and snippets.

@yifan-gu
Created July 13, 2014 23:53
Show Gist options
  • Save yifan-gu/bd163aea78c7f1183072 to your computer and use it in GitHub Desktop.
Save yifan-gu/bd163aea78c7f1183072 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 704 ns/op
BenchmarkGoGoProtobufWithoutReflectUnmarshal 1000000 1313 ns/op
BenchmarkGoGoProtoBufCodecMarshal 1000000 1726 ns/op
BenchmarkGoGoProtoBufCodecUnmarshal 1000000 2098 ns/op
ok github.com/go-distributed/messenger/codec 9.437s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment