Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Fast HTTP Talk, Httperf and Libevent, Pre-talk Hacking Session



On Wed, Nov 5, 2008 at 1:00 PM, Nguyen Vu Hung <vuhung16plus@example.com> wrote:
> On Wed, Nov 5, 2008 at 9:01 AM, Curt Sampson <cjs@example.com> wrote:
>> On 2008-11-04 22:11 +0900 (Tue), Edward Middleton wrote:
>>
>>>>> It looks like httperf 0.9.1[1]. will be libevent based.
>>>> ...
>>> http://www.comlore.com/2008/07/httperf-and-libevent-and-future-of.html
>>> http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/2008-July/000492.html
>>
>> Now that's great news!
>
> Someone has used libevent's evhttp_handle_request to create a python
> based( which uses swig and pyevent)
> web server.
>
> Unfortunately, lighttpd still beats it in team of performance.
> http://william-os4y.livejournal.com/3169.html
>
> Just FYI.
I've tried libevent:

web server( a simple skeleton):
http://aoclife.ddo.jp:8080/dIIgS0n6
source code:
http://aoclife.ddo.jp/~vuhung/foss/libevent_http.c

ab benchmark against libevent_http: 197 req/sec
ab benchmark against httpd 2.2.3: 157 req/sec

I have not tested libev but it sounds better than libevent:
http://www.zenebo.com/word/asynchronous-programming/lighttz-a-simple-and-fast-web-server/
http://libev.schmorp.de/bench.html

[vuhung@ bin]$ ./ab  -n 10000 -c 1000  http://aoclife.ddo.jp:8080/dIIgS0n6
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking aoclife.ddo.jp (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:
Server Hostname:        aoclife.ddo.jp
Server Port:            8080

Document Path:          /dIIgS0n6
Document Length:        238 bytes

Concurrency Level:      1000
Time taken for tests:   53.805 seconds
Complete requests:      10000
Failed requests:        1
   (Connect: 0, Length: 1, Exceptions: 0)
Broken pipe errors:     0
Total transferred:      3055636 bytes
HTML transferred:       2408084 bytes
Requests per second:    185.86 [#/sec] (mean)
Time per request:       5380.50 [ms] (mean)
Time per request:       5.38 [ms] (mean, across all concurrent requests)
Transfer rate:          56.79 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:       12   851 2573.0    150 49650
Processing:    27  1348 4981.9    139 39442
Waiting:       10  1348 4982.0    139 39441
Total:         27  2200 6037.0    315 52844

Percentage of the requests served within a certain time (ms)
  50%    315
  66%    359
  75%    386
  80%    406
  90%   3386
  95%  14617
  98%  30017
  99%  38889
 100%  52844 (last request)

[vuhung@ bin]$ ./ab  -n 10000 -c 1000  http://aoclife.ddo.jp/
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking aoclife.ddo.jp (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        Apache/2.2.3
Server Hostname:        aoclife.ddo.jp
Server Port:            80

Document Path:          /
Document Length:        1462 bytes

Concurrency Level:      1000
Time taken for tests:   63.499 seconds
Complete requests:      10000
Failed requests:        378
   (Connect: 0, Length: 378, Exceptions: 0)
Broken pipe errors:     0
Total transferred:      16917094 bytes
HTML transferred:       14314264 bytes
Requests per second:    157.48 [#/sec] (mean)
Time per request:       6349.90 [ms] (mean)
Time per request:       6.35 [ms] (mean, across all concurrent requests)
Transfer rate:          266.42 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        8  1200 2585.8    123 54690
Processing:    19  1754 4180.5    135 45886
Waiting:       10  1754 4180.5    135 45887
Total:         19  2955 4760.4    278 63017

Percentage of the requests served within a certain time (ms)
  50%    278
  66%    349
  75%   3208
  80%   3302
  90%   9253
  95%  14597
  98%  23827
  99%  36640
 100%  63017 (last request)

-- 
Best Regards,
Nguyen Hung Vu ( Nguyễn Vũ Hưng )
vuhung16plus{remove}@example.com , YIM: vuhung16 , Skype: vuhung16dg
A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links