Right. Those are methods for IPC. IPC doesn't have to deal with all the same issues as RPC, and so those techniques are going to be faster as a result. You can't really compare them.
It's like comparing communication between people physically located in the same room and people located on different continents.