0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

unix domain socketよりもlocal宛のtcp socketの方が速い?

Posted at

元ネタ

以前、UNIXソケットとTCPソケットの性能比較を行ったところ、以下のような結果になりました。

送信データ[GB] tcpソケット unixドメインソケット
1 1.0 1.33
4 1.56 2.17
16 4.20 6.91
※各10回測定

今までUNIXドメインの方が速いと思っていたのでループバックアドレス(127.0.0.1)宛のTCPソケットの方が速くてびっくりです。

UNIXドメインソケットってただのmemcopyだと思ってたんですけどね。
謎。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?