[zeromq-dev] Why is the IPC transport slow?

Niklas Hambüchen mail at nh2.me
Sun Apr 28 08:00:30 CEST 2013


I just benchmarked the performance (esp. latency) of ipc:// vs
tcp://127.0.0.1 with the perf/ test suite and it shows that they are
about equal!

This comes very surprising to me as unix domain sockets should be a good
bit faster than localhost TCP (somewhere between 2 and 8 times I would
expect).

I compared against this fork of ipc-bench
(https://github.com/Nicoretti/ipc-bench) which shows that raw unix
domain sockets have indeed less latency than loopback TCP - do you have
an idea what could be the reason for this performance difference not
being reflected in 0mq?

Thanks!



More information about the zeromq-dev mailing list