Skip to content

warmonkey/ipc_benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipc_benchmark

IPC benchmark on Linux which is inspired by APUE

Test

Just Make style as the following :D

make && make test

Type

These are kinds of IPC in Linux as the following:

type feature
pipe unnamed pipe
fifo named pipe
socketpair unnamed unix domain socket
unix domain socket named unix domain socket
TCP remote domain socket

#Benchmark

In my personal MacBook Pro (Retina, 13-inch, Late 2013) Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz, the benchmark is as the following:

pipe
128             512           1024          4096
1319Mb/s        5110Mb/s      8932Mb/s      20297Mb/s
1288233msg/s    1247449msg/s  1090370msg/s  619407msg/s

fifo
128             512           1024          4096
1358Mb/s        5491Mb/s      8440Mb/s      22018Mb/s
1326016msg/s    1340502msg/s  1030215msg/s  671929msg/s

socketpair
128             512           1024          4096
1117Mb/s        4401Mb/s      8869Mb/s      17207Mb/s
1090370msg/s    1074548msg/s  1082674msg/s  525121msg/s

uds
128             512           1024          4096
100Mb/s         102Mb/s       109Mb/s       97Mb/s
97600msg/s      24986msg/s    13289msg/s    2968msg/s

tcp
128             512           1024          4096
106Mb/s         143Mb/s       135Mb/s       128Mb/s
103508msg/s     34852msg/s    16529msg/s    3897msg/s

Also we make the benchmark on travis-ci Build Status

Contributing

To contribute to ipc_benchmark, clone this repo locally and commit your code on a separate branch.

Author

GitHub @detailyang

License

ipc_benchmark is licensed under the MIT license.

About

IPC benchmark on Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.4%
  • Makefile 3.0%
  • Shell 2.6%