Skip to content

Instantly share code, notes, and snippets.

@jboero
Created April 7, 2021 17:50
Show Gist options
  • Save jboero/6f99a5d06f7360a9194c7a2a7148d4cc to your computer and use it in GitHub Desktop.
Save jboero/6f99a5d06f7360a9194c7a2a7148d4cc to your computer and use it in GitHub Desktop.
# TCP latency vs UDS latency:
$ tcp_lat 4096 4096
message size: 4096 octets
roundtrip count: 4096
average latency: 23817 ns
$ unix_lat 4096 4096
message size: 4096 octets
roundtrip count: 4096
average latency: 14799 ns
# TCP throughput vs UDS throughput
# 4K test:
$ tcp_thr 4096 4096
message size: 4096 octets
message count: 4096
average throughput: 58831 msg/s
average throughput: 1927 Mb/s
$ unix_thr 4096 4096
message size: 4096 octets
message count: 4096
average throughput: 276812 msg/s
average throughput: 9070 Mb/s
# 32K test:
$ tcp_thr 32768 32768
message size: 32768 octets
message count: 32768
average throughput: 71909 msg/s
average throughput: 18850 Mb/s
$ unix_thr 32768 32768
message size: 32768 octets
message count: 32768
average throughput: 204629 msg/s
average throughput: 53642 Mb/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment