[zeromq-dev] IPC vs TCP efficiency
Tonis Xie
tonis.xie at gmail.com
Tue Jul 26 01:19:38 CEST 2011
Hello,
I have made a test on PUB/SUB pattern to compare the communication
efficiency between IPC and TCP. While IPC was supposed to be better, it
turned out that TCP is more efficient and stable than IPC.
Could anyone explain why, or did I use it in a wrong way?
Attached are two files that were modified based on ZGuide example "weather
updater". To make the empty loop work, I used gcc -O0 to compile the code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110726/dc91062a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wuclient.c
Type: text/x-csrc
Size: 1775 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110726/dc91062a/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wuserver.c
Type: text/x-csrc
Size: 868 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110726/dc91062a/attachment-0001.c>
More information about the zeromq-dev
mailing list