Re: Accept() loop in php-fcgi?
Joachim Durchholz <jo-JN0m9dTiHHGb9/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Jonathan Chen schrieb: > Recently I moved some of my php scripts from running on mod_php to > (mod_fastcgi + php-fcgi) under Apache; hoping to see some gains on > performance, however, I observed that having (mod_fastcgi + php-fcgi) > brings almost no benefit. There no performance benefit to be gained that way. The speedups occur if you go from php-cgi to mod_fastcgi+php-fcgi. > I am wondering if there is a notion of FCGI::accept() loop in php > semantics? It seems like php-fcgi implements the accept() outside of > the php scripts, which makes me unable to seperate the heavy > initialization part from the response part. That's indeed the case. PHP does the accept() loop for you. It's tailored towards making the fcgi environment as invisible as possible to the script. php-fcgi is also rumored to do the heavy initialisation part for your; at least that's what I infer from rumors that it caches compiled code from one invocation of a script to the next. Summing it up, I'd try a comparison that spits out a few lines of actual HTML (the more, the more realistic), and measure the times not only for a single run but for (say) a dozen runs. It would be interesting to read your findings here. Regards, Jo ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/