[zeromq-dev] zmq epoll loop taking over 50% of application cpu time
Michael Haberler
mail17 at mah.priv.at
Mon Sep 30 22:09:16 CEST 2013
Gabriel,
I have written a simple zmq/libwebsockets application (low performance requirements so I didnt try to push things yet)
however, I have used Andrew Canaday's libev-based libwebsockets variant: https://github.com/andrew-canaday/libwebsockets (still a bit of a moving target but stabilizing); IMV the libev-based approach will be the more flexible option to build libwebsockets with
it might be an alternative approach for you and worth exploring
- Michael
Am 30.09.2013 um 20:11 schrieb Gabriel Lambert <gaby_64 at live.ca>:
> this dramatically impacts performance of libwebsocket by about a factor of 35.
>
> the cause of the performance loss was not evident, oprofile and gprof did not show libzmq
>
> i found it using Zoom profiler.
>
>
> attached is a test case of libwebsocket with and wihout zmq
> rps is updated in the chrome console once you press send, using a number in the field will make it send that number of request at once instead of doing request-reply continuously.
>
> <tests.zip>_______________________________________________
> 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