注意:ググってコピペしただけの情報です。
Serialization in Go
https://docs.google.com/document/d/131hdZ-dMKBrsLJim4t0jlaDiot6pXLUTI-zIXrNW-u8/pub
Marshal | Unmarshal | |
---|---|---|
gob | 10153 ns/op | 2691 ns/op |
gob (streaming) | 3058 ns/op | 4522 ns/op |
gogoprotobuf | 477 ns/op | 643 ns/op |
Serialization Benchmark
http://www.slideshare.net/albertstrasheim/serialization-in-go
Marshal | Unmarshal | |
---|---|---|
gogoprotobuf | 581 ns/op | 894 ns/op |
go-capnproto | 183 ns/op | 879 ns/op |
go-capnproto zero copy | - | 467 ns/op |
go-capnproto
http://godoc.org/github.com/glycerine/go-capnproto
Cap’n Proto - Schema Language
http://kentonv.github.io/capnproto/language.html
FlatBuffers - Benchmarks
http://google.github.io/flatbuffers/md__benchmarks.html
Marshal | Unmarshal | |
---|---|---|
Protocol Buffers LITE | 185 | 302 |
FlatBuffers (binary) | 3.2 | 0.08 |
(1 million times, seconds)
http://godoc.org/github.com/google/flatbuffers/go
FlatBuffers - Use in Go
http://google.github.io/flatbuffers/md__go_usage.html