Simple benchmark app for UDS and TCP sockets.
Simple makefile.
Server is multithreaded and can use either AF_UNIX (default) or AF_INET (option for IPv6 via AF_UNSPEC). Client is a single thread and specifies UDS (default) or AF_INET port.
Start a UNIX Domain Socket server at ./sockbench.sock:
sockbench -s
Start a TCP server at your port:
sockbench -s9000
Start a UDS client binding to ./sockbench.sock, using default blocksize 32k and default count 32k:
sockbench -c
Start a UDS client with custom block size and quantity:
sockbench -c -b4096 -q16384
Start a TCP client on your port (block size and quantity optional):
sockbench -c9000