I'm curious if json + simdjson will outperform protobuf.
I'm picking a protocol for my project. I was looking at protobuf, but this post made me think otherwise.
I'm picking a protocol for my project. I was looking at protobuf, but this post made me think otherwise.
I know about fast_float (which is by the same author as simdjson), however my believe is that binary format is impossible to beat here.
However, your use case is likely doesn't need to process multi-gigabit traffic in JSON requests. Therefore, protobuf, or more specifically, gRPC will be just fine.
> Performance wise, simdjson-go runs on average at about 40% to 60% of the speed of simdjson. Compared to Golang's standard package encoding/json, simdjson-go is about 10x faster.
I haven't tried it yet but I don't really need that speed.