Re: phpng: Refactored PHP Engine with Big Performance Improvement
| From: | Rasmus Lerdorf | Date: | Mon, 12 May 2014 13:57:48 +0000 |
| Subject: | Re: phpng: Refactored PHP Engine with Big Performance Improvement | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74128@lists.php.net to get a copy of this message | ||
On 5/12/14, 12:21 AM, Dmitry Stogov wrote:
> the performance difference may be significant.
> For example qdig.
>
> mod_php (PIC) 440 req/sec
> FastCGI (non-PIC) 537 req/sec
>
> The bechmark was done with 32-bit build of phpng.
>
> I didn't get time to investigate it in all details, but it'll really
> make sense.
But on 32-bit mod_php (libphp5.so) doesn't need to be PIC, does it? We
went through this many years ago and worked out that a non-PIC
libphp5.so works fine.
Things are a bit different on 64-bit because of 32-bit immediate operands.
However, I don't really believe that PIC vs. non-PIC accounts for
anywhere near a 20% performance difference in a real-world scenario. Can
you build phpng non-pic and run the same test again?
-Rasmus
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc