Mailing List Archive
tlug.jp Mailing List tlug archive tlug 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
- Date: Wed, 5 Nov 2008 15:41:29 +0900
- From: "Nguyen Vu Hung" <vuhung16plus@example.com>
- Subject: Re: [tlug] Fast HTTP Talk, Httperf and Libevent, Pre-talk Hacking Session
- References: <87fxm9tfx7.fsf-genuine-vii@john.fremlin.org> <20081103093743.GB14296@lucky.cynic.net> <87zlkhrreb.fsf-genuine-vii@john.fremlin.org> <20081103141806.GA12339@smtp.office.cynic.net> <490FFE94.6030301@bebear.net> <20081104111251.GB27318@smtp.office.cynic.net> <491049E6.9070201@bebear.net> <20081105000104.GC9096@pragmatic.cynic.net> <78d7dd350811042000u50e99f81l7bee1a130a05f66d@mail.gmail.com>
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
- Follow-Ups:
- Re: [tlug] Fast HTTP Talk, Httperf and Libevent, Pre-talk Hacking Session
- From: Edward Middleton
- References:
- [tlug] [RFC] Outline of the fast HTTP talk
- From: John Fremlin
- Re: [tlug] [RFC] Outline of the fast HTTP talk
- From: Curt Sampson
- [tlug] Re: [RFC] Outline of the fast HTTP talk
- From: John Fremlin
- [tlug] Re: [RFC] Outline of the fast HTTP talk
- From: Curt Sampson
- Re: [tlug] Re: [RFC] Outline of the fast HTTP talk
- From: Edward Middleton
- Re: [tlug] Re: [RFC] Outline of the fast HTTP talk
- From: Curt Sampson
- Re: [tlug] Re: [RFC] Outline of the fast HTTP talk
- From: Edward Middleton
- [tlug] Fast HTTP Talk, Httperf and Libevent, Pre-talk Hacking Session
- From: Curt Sampson
- Re: [tlug] Fast HTTP Talk, Httperf and Libevent, Pre-talk Hacking Session
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] X11 Session Manager Setup
- Next by Date: [tlug] Re: [RFC] Outline of the fast HTTP talk
- Previous by thread: Re: [tlug] Fast HTTP Talk, Httperf and Libevent, Pre-talk Hacking Session
- Next by thread: Re: [tlug] Fast HTTP Talk, Httperf and Libevent, Pre-talk Hacking Session
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links