Skip to content

jboero/sockbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sockbench

Simple benchmark app for UDS and TCP sockets.

Building

Simple makefile.

Usage

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.

Examples

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

About

Simple benchmark app for UDS and TCP sockets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published