Re: phpng: Refactored PHP Engine with Big Performance Improvement

From: Date: Thu, 08 May 2014 01:56:45 +0000
Subject: Re: phpng: Refactored PHP Engine with Big Performance Improvement
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-74047@lists.php.net to get a copy of this message
On May 7, 2014, at 12:49 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > Hi! > >> I recently converted apache2handler to support phpng and it's appeared >> significantly slower than FastCGI and FPM. > > Do we know why? I would assume since FastCGI has additional data hop > (between webserver and the actual PHP binary) Apache one would be faster > but looks like it's not so. It'd be interesting to know why. I think in some cases the benchmarks I’ve seen are not apples-to-apples. I would also like to see this on true apples to apples. [assuming no static files are served]. By the way, at some point there was one reason for FastCGI to be faster - php-cgi was non-PIC while mod_php.so was PIC. But I believe on Linux you can have shared libraries that are non-PIC. [PIC meaning position independent code]. Andi

« previous php.internals (#74047) next »