IPC performance: Named Pipe vs Socket

后端 未结 10 1542
自闭症患者
自闭症患者 2020-11-28 01:39

Everyone seems to say named pipes are faster than sockets IPC. How much faster are they? I would prefer to use sockets because they can do two-way communication and are very

10条回答
  •  抹茶落季
    2020-11-28 02:00

    As often, numbers says more than feeling, here are some data: Pipe vs Unix Socket Performance (opendmx.net).

    This benchmark shows a difference of about 12 to 15% faster speed for pipes.

提交回复
热议问题