[Mongrel] speed curiosity
jftucker at gmail.com
Mon Sep 1 07:30:27 EDT 2008
On 30 Aug 2008, at 21:57, Roger Pack wrote:
> As a note--using the mongrel example from
> http://mongrel.rubyforge.org/web/mongrel/files/README.html and Mongrel
> It yielded (for me) ~800 req/s [running ab -n 1000 -c 1
> and if I changed
AFAIK that's not the fastest of operations.
> it yielded ~300 req/s.
> I was unable to get evented mongrel to run so wasn't able to compare
> Doing a little bit of investigating, kcachegrind+ruby-prof points the
> latency to http_response.rb line 137
> Experimenting by changing this line haphazardly to
> while data and data.length > 0
> wrote = @socket.write_nonblock(data)
> data = data[wrote..-1]
> yielded ~938 req/s [AFAICT]
Thin and ebb both write more like this.
> Posted via http://www.ruby-forum.com/.
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
More information about the Mongrel-users