News for hackers. Stuff that matters.
Re:MessagePack: like JSON, but fast and small by gravypod on Tuesday March 10, 2020 @01:34PM (#22537509)
Is there any comparison of the tooling/performance/etc of MessagePack, BSON, Protobuffers, Flatbuffers, and plain JSON?
Re:MessagePack: like JSON, but fast and small by ludocode on Tuesday March 10, 2020 @04:13PM (#22539183)
I did some pretty extensive benchmarking of various schemaless serialization libraries a few years back. All of these libraries have advanced quite a bit since then so it's a bit out of date, but the relative speeds of MessagePack vs JSON and BSON are probably still relevant:

https://github.com/ludocode/schemaless-benchmarks

I haven't compared them to schema formats like Protobuf or FlatBuffers yet because the use cases are pretty different. I like MessagePack for small projects or rapid prototyping because you don't need to integrate any big libraries or set up code generation as part of your buildsystem. (Mostly I got sick of integrating the C++ Protobuf library into embedded projects.)

The MessagePack format is a lot simpler than Protobuf and the best implementations are nowhere near as allocation-prone as the reference implementation so I expect they would beat it flat out on performance, though the messages may be slightly larger. They would probably beat FlatBuffers for encoding speed as well, but I don't expect any schemaless format could beat FlatBuffers for decoding speed.

Re:MessagePack: like JSON, but fast and small by katnegermis on Tuesday March 10, 2020 @06:25PM (#22540492)
At noesis.gg we made a small, not-at-all scientific comparison of our JSON and flatbuffers implementations: https://www.noesis.gg/news/player-movement-speedup.html.

The somewhat silly video on that page shows the actual difference in performance our users felt after the change. It was a _huge_ benefit, both in terms of loading time, but also in terms of memory, vastly increasing the number of CS:GO rounds that could be analyzed simultaneously.

Re:MessagePack: like JSON, but fast and small by tracker1 on Tuesday March 10, 2020 @01:48PM (#22537663)
Lots.. however, best bet is to search for your language, platform and use-case. The performance can vary widely by platform and language. JSON is actually faster in some platforms or libraries, binary options faster in others. Connection interface and overhead are also an issue.
Re:MessagePack: like JSON, but fast and small by GordonS on Tuesday March 10, 2020 @02:31PM (#22538107)
It's for a specific library of course, but there are some numbers here:

https://github.com/neuecc/MessagePack-CSharp

Re:MessagePack: like JSON, but fast and small by brianpgordon on Tuesday March 10, 2020 @03:13PM (#22538552)
Also Avro and Thrift, please!