#34 le-proxy poor performance

Performance
open
nobody
General (24)
5
2009-09-18
2009-09-18
Anonymous
No

i am looking for a proxy sample code using libevent and have found le-proxy on levent svn. after checked out the rev.1432, i compiled and run le-proxy but found its performance is so poor. about 10hits/second on 2 p4 machines (i tried it on 2 different machines), on the same machines, another thread-based proxy can do more than 300hits/second.

is it normal or what should i do to get better performance on le-proxy?

Discussion

  • remove BEV_OPT_DEFER_CALLBACKS from bufferevent_socket_new() will gain a dramatic performance boost.