go_serialization_benchmarks
go_serialization_benchmarks copied to clipboard
Add apache thrift
Apache Thrift v0.15.0
Somehow the JSON protocol seems buggy (check json unmarshal test), the rests are fine (TCompact, TBinary)
Look:
TMemoryBuffer uses bytes.Buffer , the Close() method calls bytes.Buffer.Reset so that it can be used for next operation but it turns out the result .Bytes() giving empty byte slice
https://github.com/apache/thrift/blob/e27e82c46ba4/lib/go/thrift/memory_buffer.go#L68-L71

Meanwhile TCompact:

and TBinary:

Ok forgot to add the .Flush method call