In R. Stevens's Unix Network Programming, second edition Vol. 1 he
states that "On Berkeley-derived implementations Unix domain sockets are
often twice as fast as a TCP socket". Now my question is has anybody
looked into whether this statement is true on non-Berkely
implementations, particularly Solaris?
I did some testing on my own on Solaris 2.5 and was surprised to see
that unix domain sockets actually performed worse than TCP sockets (when
the client and server reside on the same box). For my test code I found
TCP sockets to be approximately 38% faster than unix domain sockets.
Now if this conclusion is correct, why would that be the case?. And if
it's wrong, then has anybody studied this issue in some detail?.
Wael R. Elwasif
Computer Science Department
University of Tennessee, Knoxville
Phone : (423) 974-6852
Fax : (423) 974-4404