From: David Garamond Date: 2004-06-21T16:09:19+09:00 Subject: Re: rubys web performance Andreas Schwarz wrote: > Did you really try PHP CGI with source files of comparable size (don't > forget that every file you require could itself require other files)? > > I don't know exactly how the parsing mechanism in PHP and Ruby differs, > and I don't know if there is actually a difference in performance; but > I wouldn't be surprised if PHP was faster, because the language is > *much* simpler to parse than Ruby. However, I don't think it's really a > problem. my experience with php seems to confirm this. php compilation is so fast that it's okay to use PHP CGI for medium traffic and simple to medium application complexity. *but*, if your application needs to compile 1000+ lines of php code on every request (e.g. you include/require several libraries, like PEAR modules), the overhead does start to show itself (0.5-1 seconds or more of delay). php cgi apps seems faster since most libraries are written in C, while Perl's (and Ruby's) are written in pure Perl/Ruby code so they need to compile many lines of code per request. but this situation is changing everyday that PEAR is more and more used everyday... -- dave