From: Andreas Schwarz Date: 2004-10-11T21:39:48+09:00 Subject: Re: overhead of WEBrick served http? Martin Pirker wrote: > I'm running here a servlet off WEBrick. > Each request is rendered in xx-xxx request/s time by my code > (measured exit time-entry time of servlet) > > So res.body is filled with xx-xxx kb html, what I'm wondering > a) how to best measure the overhead caused by doing also the > actual socket stuff/http transport in Ruby (=in WEBrick) > = the real requests/s Try ApacheBench (ab). > b) probably someone already compared this to other http server > interfaces (fastCGI?), if I do only the request rendering > in Ruby and http stuff by pure C server, would this be > much faster? FastCGI is faster (expecially when you use the FastCGI C extension for Ruby), not only because of the less amount of work done in ruby, but also because you can use multiple ruby processes in parallel instead of Ruby threads. -- http://www.mikrocontroller.net - Das Mikrocontroller-Forum