Created
July 5, 2014 22:15
-
-
Save yifan-gu/b67fd18aa0b1db7d514c to your computer and use it in GitHub Desktop.
benchmark of the messenger/codec/gogoprotobuf_codec.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== 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