[zeromq-dev] pyzmq poller performance

Min RK benjaminrk at gmail.com
Mon Jun 24 18:12:49 CEST 2013


Thanks for the report, I will look into whether I have introduced a performance degradation in the last few  iterations.

-MinRK

On Jun 24, 2013, at 11:27, Brian Knox <briank at talksum.com> wrote:

> It's been awhile since I've used pyzmq, and I'm running into a performance issue using Poller.poll().
> 
> With a simple blocking recv() in a while True loop, I get ~ 300k messages a second.
> 
> With the simplest case of the same code using a poll on the socket, I get ~ 30k messages a second.
> 
> (pyzeromq)taotetek at Moya:~/src/performance_example$ python ./receiver.py
> mps: 226049
> mps: 348582
> mps: 271728
> mps: 300389
> mps: 411059
> mps: 276749
> 
> (pyzeromq)taotetek at Moya:~/src/performance_example$ python ./poll_receiver.py
> mps: 28066
> mps: 28116
> mps: 29745
> mps: 28912
> mps: 28679
> 
> I don't remember a 10x performance degradation last time I used a poller - but perhaps I'm remembering something wrong, or making a painfully obvious error in my code .. I've been using czmq from C mostly for the last while.
> 
> I'm using pyzmq from git master, and the latest Cython (0.19.1) with libzmq 3.2.3.
> 
> I've attached the test cases I'm using.
> 
> <performance_example.tar>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list