recently, I have been having some discussions with @pid_eins about D-Bus vs. Varlink. He made a point that the efficiency of the encoding isn't in the end, as important as the effects of context switching, given that the modern chips are super efficient at parsing and copying data, but not really good at context switching.
I knew that there is a lot of truth to that but I wanted to find out how much so I did some benchmarking:
https://github.com/zeenix/json-vs-bin
Turns out, he's absolutely right on money.
P.S. No, don't worry. This doesn't mean I'll abandon my D-Bus work/plans. D-Bus is not going anywhere anytime soon and the world still needs easy and safe implementations of it.