Libev vs. libevent benchmark (reloaded)
schmorp at schmorp.de
Mon Apr 19 01:26:33 CEST 2010
On Tue, Apr 13, 2010 at 03:26:19PM +0200, Gabriel Kerneis <kerneis at pps.jussieu.fr> wrote:
> See the attached script. You might need to tweak it a bit (especially
> the cpufreq-set call) but otherwise, it automates completely the
> benchmark (provided you have the expected tools installed).
[As an interesting side-note, it seems libevent-2.0.4 uses the same]
Sorry, forgot to mention that this can easily explain the perceived
performance, as libev does EPOLL_CTL_MOD, while libevent does
EPOLL_CTL_ADD, which is faster in the benchmark case (it simply errors out
without writing memory), but does not support fork.
Working correctly with fork is, of course, an advertised feature of libev.
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
More information about the libev