Welcome! Log In Create A New Profile

Advanced

Re: 10 000 req/s: tpd2 - why it is so fast?

October 09, 2009 02:14PM
On Fri, Oct 09, 2009 at 08:26:32PM +0400, Igor Sysoev wrote:

> On Fri, Oct 09, 2009 at 05:30:19PM +0200, Dinh Pham wrote:
>
> > I have come across an article whose author claimed that his web server
> > can handle 10 000 requests per second. Because I am far from expert on
> > high performance web servers so I would like to ask you if his
> > benchmarks has any flaw or his web server is too simple to be slow?
> >
> > I have never thought that a LISP-based implementation can be as fast as
> > C-based implementations such as Nginx. Is there any magic here?
> >
> > You can read his article here http://john.freml.in/teepeedee2-c10k
>
> On notebook running FreeBSD 7.0 on Pentium M 1.70GHz using configuration:
>
> server {
> listen 8000;
> return 404;
> access_log off;
> }
>
>
> I have got these results via localhost:
>
> ab -n 30000 -c 10 ~8200 r/s
> ab -n 30000 -c 10 -k ~20000 r/s
>
> This means that this microbenchmark tests mostly TCP connection
> establishment via localhost: keepalive is 2.4 faster.

BTW, using embedded perl:

server {
listen 8010;
access_log off;

location = /test {
perl 'sub {
my $r = shift;
$r->send_http_header("text/html");
$r->print("<h1>Hello ", $r->variable("arg_name"), "</h1>");
return OK;
}';
}
}

"ab -n 30000 -c 10 -k" has got ~7800 r/s.


--
Igor Sysoev
http://sysoev.ru/en/
SubjectAuthorPosted

10 000 req/s: tpd2 - why it is so fast?

Dinh PhamOctober 09, 2009 02:14PM

Re: 10 000 req/s: tpd2 - why it is so fast?

Akins, BrianOctober 09, 2009 04:06PM

Re: 10 000 req/s: tpd2 - why it is so fast?

anomalizerOctober 24, 2009 01:02PM

Re: 10 000 req/s: tpd2 - why it is so fast?

Denis FilimonovOctober 09, 2009 02:14PM

Re: 10 000 req/s: tpd2 - why it is so fast?

Asif AliOctober 31, 2009 02:22PM

Re: 10 000 req/s: tpd2 - why it is so fast?

Igor SysoevOctober 09, 2009 02:14PM

Re: 10 000 req/s: tpd2 - why it is so fast?

Igor SysoevOctober 09, 2009 02:14PM

Re: 10 000 req/s: tpd2 - why it is so fast?

Zev BlutOctober 28, 2009 10:44PM

Re: 10 000 req/s: tpd2 - why it is so fast?

Igor SysoevOctober 29, 2009 02:54AM

Re: 10 000 req/s: tpd2 - why it is so fast?

Maxim DouninOctober 29, 2009 06:44AM

Re: 10 000 req/s: tpd2 - why it is so fast?

Igor SysoevOctober 29, 2009 06:58AM

Re: 10 000 req/s: tpd2 - why it is so fast?

Igor SysoevOctober 30, 2009 03:00AM

Re: 10 000 req/s: tpd2 - why it is so fast?

Akins, BrianOctober 24, 2009 01:30PM

Re: 10 000 req/s: tpd2 - why it is so fast?

Chris ZimmermanOctober 24, 2009 02:20PM

Re: 10 000 req/s: tpd2 - why it is so fast?

Akins, BrianOctober 30, 2009 09:22AM

Re: 10 000 req/s: tpd2 - why it is so fast?

Igor SysoevOctober 30, 2009 09:32AM

Re: 10 000 req/s: tpd2 - why it is so fast?

Akins, BrianOctober 30, 2009 10:36AM

Re: 10 000 req/s: tpd2 - why it is so fast?

Igor SysoevOctober 30, 2009 10:46AM

Re: 10 000 req/s: tpd2 - why it is so fast?

Akins, BrianOctober 30, 2009 12:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready