Re: phpng: Refactored PHP Engine with Big Performance Improvement

From: Date: Mon, 12 May 2014 19:56:04 +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 14  Groups: php.internals 
Request: Send a blank email to internals+get-74135@lists.php.net to get a copy of this message
FastCGI (non-PIC) 537 req/sec mod_php (non-PIC) 555 req/sec mod_pgp (PIC) 463 req/sec with non-PIC code mod_php is a bit faster than FastCGI (as expected). PIC makes a big difference on x86. Thanks. Dmitry. On Mon, May 12, 2014 at 5:57 PM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > 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 > >

« previous php.internals (#74135) next »