doesn't seem universally true, https://github.com/protobufjs/protobuf.js/issues/2114#issue-...

If you're writing JS you cannot beat JSON.parse, because you're running the most optimized C++ implementation of JSON which will outcompete any decoder written JS itself.

Which is not a very generalizable situation.