Socket performance comparison tool. Because folks like to write how much faster than loopback are UNIX domain sockets, but nobody can provide solid numbers under most common circumstances. Now you can see it for yourself.
This is only a quick and dirty experiment so anyone interested can evaluate it and see whether implementing AF_UNIX (AF_LOCAL) sockets in their software makes sense. Nevertheless, any bug reports are welcome.
-
cd
-
make
-
Run spsrv:
./spsrv &
-
Run spcli:
./spcli
-
Repeat step 4 if necessary
-
fg
-
ctrl+c to kill spsrv