Does anyone know why the webrick is still faster? Mongrel runs without
problem but quite slow. Cant see any advantage to webrick.
Mongrel serializes all requests because Rails isn’t thread safe. Webrick
doesn’t have this knowledge. Try hitting them with only one thread (and
post those results here also please :-)).
It is true that Mongrel locks the requests to Rails but I believe that
WEBrick does something similar. If it didn’t then nobody could run in
production at all.
I have updated the tests and ran it once again for both: Mongrel and
Webrick. The page I’m accessing in test has no connection from database,
so there is not other bottleneck except of rails itself. Not sure why
the results are a bit different from what I seen yesterday, but now the
speed simillar at least. I did each test 3x for each server and the
value is the average.
Interesting results, I’ll have to check it. The 0.3.11 release is
mostly to
get everything working right now on win32, with uber-tweaking coming
soon.
It’s possible I slipped something in that is causing this.
Zed
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.