the performance impaction of TCP communication in same machine?

Two processes at the same machine communicaton with each other use TCP. The communicaton flow between them is very heavy.
My question is How the impaction of "processes at the same machine communicaton " .If I mv one process to another machine and send the same data, the impact is less than or equal or larger than "processes at the same machine communicaton ".

I don't really understand the question, but here are some general comments.

TCP would not be my first choice as a IPC mechanism between 2 processes on the same system. TCP does a lot of work to ensure reliable data delivery and that is just wasted effort. Unix domain sockets are intended for this purpose and seem like a better choice.

You seem to be asking if moving one process to another system would help. Maybe and maybe not. There are too many variables to say for sure. Is the first system overloaded or lightly loaded? How much data moves between the processes? Does your network have the bandwidth to handle that much data?

The only way to know for sure is to try it both ways and measure the difference.