Surprised a more comprehensive benchmark evaluation was not done since this tends to be a pretty sensitive topic.
Surprised a more comprehensive benchmark evaluation was not done since this tends to be a pretty sensitive topic.
This implementation is competitive (sometimes faster, sometimes slower) with good implementations like goccy/go-json on its own, and beats goccy/go-json when composing this library with goccy/go-json.
This composition and goccy/go-json performance is included in the post.
Maybe in a followup post I'll do more benchmarks against other fast libraries. But for this one I wanted to show the process and then just pick one fast library for comparison.
Edit: also, I forgot to mention in the post but some libraries speed up encoding by requiring a fixed schema. DataStation/dsq is extremely dynamic and I'll never know the schema up front. Just another reason why I couldn't use some existing faster libraries.
I'd expect any other json lib trying to be faster to do those same comparisons and not produce arguably clickbait "55% faster" titles since your library isn't really that much faster than goccy.
Pick the ones that match (dynamic) to compare against.
it was, thanks for sharing.