←back to thread

112 points zardinality | 1 comments | | HN request time: 0s | source
Show context
jeffbee ◴[] No.42195134[source]
Interesting that it is taken on faith that unix sockets are faster than inet sockets.
replies(5): >>42195458 #>>42195476 #>>42195489 #>>42195960 #>>42196345 #
eqvinox ◴[] No.42195489[source]
That's because it's logical that implementing network capable segmentation and flow control is more costly than just moving data with internal, native structures. And looking up random benchmarks yields anything from equal performance to 10x faster for Unix domain.
replies(1): >>42196875 #
bluGill ◴[] No.42196875[source]
It wouldn't surprise me if inet sockets were more optimized though and so unix sockets ended up slower anyway just because nobody has bothered to make them good (which is probably why some of your benchmarks show equal performance). Benchmarks are important.
replies(2): >>42196928 #>>42198265 #
1. eqvinox ◴[] No.42196928[source]
I agree, but practically speaking they're used en masse all across the field and people did bother to make them good [enough]. I suspect the benchmarks where they come up equal are cases where things are limited by other factors (e.g. syscall overhead), though I don't want to make unfounded accusations :)