Running
hackbench without any options will give default behaviour,
using fork() and sending data between senders and receivers
via sockets.
user@host: ~ $hackbench
Running in process mode with 10 groups using 40 filedescriptors each (== 400 tasks)
Each sender will pass 100 messages of 100 bytes
Time: 0.890
To use pipes
between senders and receivers and using threads instead of
fork(), run
user@host: ~ $hackbench −−pipe −−threads (orhackbench −p −T)
Running in threaded mode with 10 groups using 40 filedescriptors each (== 400 tasks)
Each sender will pass 100 messages of 100 bytes
Time: 0.497
Set the
datasize to 512 bytes, do 200 messages per sender/receiver
pairs and use 15 groups using 25 file descriptors per child,
in process mode.
user@host: ~ $hackbench −s 512 −l 200 −g 15 −f 25−P
Running in process mode with 15 groups using 50 filedescriptors each (== 750 tasks)
Each sender will pass 200 messages of 512 bytes
Time: 4.497
https://man.cx/hackbench