[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] How to reproduce benchmark graphs on libevent homepage?
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] How to reproduce benchmark graphs on libevent homepage?
- From: Rupert Smith <rupertlssmith@xxxxxxxxxxxxxx>
- Date: Thu, 11 Mar 2010 11:32:16 +0000
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Thu, 11 Mar 2010 06:32:25 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=tfsP0WwGIG+SVDiymt1NPKgVhfUd8CRACFoMX9q6pLE=; b=wLSGInevQBVd5zNuXDgdwiJBM74HPrTfx4Ms/+lltC+lUmBlqetDgR5cMj3s1FGOo/ TrnYFChrymJW/W3vOpvD9eG1uCHVQln2AXkvOerO//hO1GtFwm45OOfV7TSBBjq9X83C FEdyJq4EAKDQk+aL1tlKm89TE9Zkc96Y0cnS8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qiSiwKNELuUA6oFT2QSTT4XdimbvFG9UHhmESghjxsuyMRMUTU6YJeYUA4R5JZrqmL OTplQ0r7ZuZDNgv234ahTnrq2mVmg3SZCju0LydtnQsLsEq9f1bLBg0UiD3ocy8Sw0WU 5F/FeCvb4nFz6I9/Vp9+xDpNO83gG6maIwVR8=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hi,
I am writing a network application in Java, and am using selectors,
which Java implements on top of epoll, on a Linux box. I have noticed
that a call to select available socket events might typically take
400us, and I only have one active connection out of a total of one
connections when I see this figure. I am investigating whether this
latency is due to the way epoll is implemented, or whether Java is not
using epoll as efficiently as possible.
I notice that on the libevent homepage, there is a benchmark
performance graph, for the time to service one active connection out
of a total of n connections:
http://www.monkey.org/~provos/libevent/libevent-benchmark.jpg
On that graph it looks like latencies with epoll can be as low as
10us. Could someone explain to me how to run the benchmark that was
used to produce that graph, so that I might run it on my own set up
and compare the latencies I get with libevent to what I am seeing in
my Java code? Any help would be most appreciated.
I can see that there are some benchmarking tools available in the
'/test' directory. I have already run bench_http and bench_httpclient
together and seen latencies of 40us. I don't know what event mechanism
this benchmark used, and I don't there are any command line options
that it responds to, for example, to set up the test to run over a
network, rather than just a local loopback.
Rupert Smith
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.