[zeromq-dev] WSAWaitForMultipleEvents versus WSAPoll

Steven McCoy steven.mccoy at miru.hk
Sat Oct 30 16:09:44 CEST 2010


Using the hideous algorithm used in Python and Ruby only leads to
significantly worse results.  Their algorithm is basically emulating a
blocking send with an overlapped send followed by a wait for the overlapped
operation to complete.

http://www.google.com/codesearch/p?hl=en#kOEgDIzD-Ao/trunk/lib/ruby/win32/win32.c&q=wsasendto%20overlapped&sa=N&cd=3&ct=rc

2010-10-30 22:05:43 : s=10001.2 avg=594.8 min=176.0 max=10566.0 stddev=
1012.5 us o=84.81 i=84.81 mbit
2010-10-30 22:05:45 : s=9999.9 avg=948.9 min=177.0 max=11314.0 stddev=1547.0
us o=84.80 i=84.80 mbit
2010-10-30 22:05:47 : s=9999.8 avg=1128.2 min=174.0 max=15645.0
stddev=2099.7 us o=84.80 i=84.80 mbit
2010-10-30 22:05:49 : s=9999.9 avg=507.1 min=177.0 max=5690.0 stddev=646.3
us o=84.80 i=84.80 mbit
2010-10-30 22:05:51 : s=9998.3 avg=1048.1 min=176.0 max=14902.0
stddev=1831.4 us o=84.79 i=84.79 mbit
2010-10-30 22:05:53 : s=10001.6 avg=779.8 min=176.0 max=11156.0
stddev=1396.0 us o=84.81 i=84.81 mbit

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101030/1bb19b3a/attachment.htm>


More information about the zeromq-dev mailing list