Libev vs. libevent benchmark (reloaded)

Marc Lehmann schmorp at
Mon Apr 12 17:10:29 CEST 2010

On Mon, Apr 12, 2010 at 01:46:22PM +0200, Gabriel Kerneis <kerneis at> wrote:
> or 100,000 fds with timeout and libevent emulation), libevent is faster
> than libev in terms of total time per iteration.  But libev remains
> consistently faster when considering event processing only.


> I ran the benchmark on an Intel Core2 Duo CPU E8500 @ 3.16GHz.  I wonder

I tried to run the benchmark myself last month, but due to changes in
libevent 2 (I used libevent-2.0.4-alpha), the current code does not run at
all. I fixed parts of it, but not all yet.

If you ran the code unmodified, how did you do that? :)

Now, since libevent does an enourmous number of pointer operations,
mutex ops, syscalls etc. per watcher setup in 2.0, I find this a bit
questionable (but it's possible).

> As an aside, Marc, did you keep the scripts you used to run the bench
> and generate the graphics?  It would make it easier to compare the
> results.

This is used to run the benchmark and plot the results - it requires two
binaries, bench (libev) and bench-le (libevent).

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list