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][tlug] Re: [RFC] Outline of the fast HTTP talk
- Date: Tue, 04 Nov 2008 02:18:43 +0000
- From: John Fremlin <john@example.com>
- Subject: [tlug] Re: [RFC] Outline of the fast HTTP talk
- 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> <87wsfkab9i.fsf-genuine-vii@john.fremlin.org> <20081104005417.GA27170@pragmatic.cynic.net> <490FA7A2.7010700@bebear.net>
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
Edward Middleton <emiddleton@example.com> writes: > Curt Sampson wrote: >> On 2008-11-03 18:56 +0000 (Mon), John Fremlin wrote: >> >>> I get about 2k requests per second on one core of my laptop with the >>> following mongrel script.... >>> >>> Are you in that ballpark? >>> >> >> Well, I've not benchmarked recently, but last time I checked, we were >> handling more than 500 requests per second on a 700 MHz Pentium II, so >> I'd say, yes we certainly are. Probably, given that on a multi-core >> machine we can distribute the load amongst multiple back-ends, we're >> faster. (Or does mongrel have the capability to use multiple >> processes?) Mongrel is multithreaded > My varnish server is Celeron 1.8GHz with 2G of ram. I would be > interested in running any benchmarks you have against this server, for > comparison. Feel free. Run apachebench against this ruby script. The test is for performance on one core, so if you have more use schedtool to set the CPU affinity (and run apachebench on another core). schedtool -a 0 -e ruby mongrels.rb schedtool -a 1 -e ab -n 10000 -c100 http://127.0.0.1:3000/?name=TLUG require 'mongrel' require 'cgi' class SimpleHandler < Mongrel::HttpHandler def process(request, response) response.start(200) do |head,out| head["Content-Type"] = "text/html" name = CGI::escapeHTML (CGI::parse(request.params['QUERY_STRING']) ['name'].to_s) out.write("<h1>Hello #{name}</h1>") end end end h = Mongrel::HttpServer.new("0.0.0.0", "3000") h.register("/", SimpleHandler.new) h.run.join
- Follow-Ups:
- [tlug] Re: [RFC] Outline of the fast HTTP talk (PHP benchmark)
- From: John Fremlin
- Re: [tlug] Re: [RFC] Outline of the fast HTTP talk
- From: Curt Sampson
- [tlug] Re: [RFC] Outline of the fast HTTP talk
- 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
- [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
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] linux netbooks?
- Next by Date: Re: [tlug] Upgrade to Intrepid Ibis has squelched my LAMP
- Previous by thread: Re: [tlug] Re: [RFC] Outline of the fast HTTP talk
- Next by thread: [tlug] Re: [RFC] Outline of the fast HTTP talk (PHP benchmark)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links