Re: phpng: Refactored PHP Engine with Big Performance Improvement

From: Date: Mon, 12 May 2014 23:55:05 +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 15  Groups: php.internals 
Request: Send a blank email to internals+get-74140@lists.php.net to get a copy of this message
On 5/12/14, 12:56 PM, Dmitry Stogov wrote: > 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. I wonder if the difference is as large on x86_64. You tested only on 32-bit x86, right? Also, even with FastCGI, you are going to be linking in a whole bunch of PIC shared libraries. So in a realworld app that makes lots of calls into these libraries you are still going to have jump table function call overhead. Another thought. Since PIC overhead is on function calls and our default VM is CALL, perhaps using SWITCH or GOTO instead might help here? And if it does it might make sense to change the default now that the world is 64-bit and we can't compile non-PIC anymore. -Rasmus

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#74140) next »