On Wed, Jul 8, 2009 at 4:30 PM, Springande Ulv<springande...@gmail.com> wrote:
> Without having looked at your code I would guess the following. By
> using the http part of libevent you do a lot of allocation and data
> copying into buffers as well as function callbacks. While ab does no
> such thing and write and read directly on the sockets. Also note that
> there are minimal differences from select and other event mechanisms
> for the small socket sets so there is not much to gain from using
> epoll or kqueue in this case.

You might want to try the benchmark tool with libevent-2.0.1-alpha or
directly from trunk.  There has been a lot of work to reduce data
copies.

Niels.
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to