Re: Practical comparisons on PHP7
| From: | Björn Larsson | Date: | Thu, 10 Dec 2015 11:02:34 +0000 |
| Subject: | Re: Practical comparisons on PHP7 | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89785@lists.php.net to get a copy of this message | ||
Den 2015-12-09 kl. 20:46, skrev Mike Willbanks:
Lester, On Wed, Dec 9, 2015 at 1:02 PM, Lester Caine <lester@lsces.co.uk> wrote:PHP 7 compliant, see: https://github.com/smarty-php/smarty Regards //BjörnOn 09/12/15 16:24, Rowan Collins wrote:This states nothing of how the code was architected and therefore cannot provide any realistic baseline as others have noted. In addition to this, your comparing apples to oranges. The speed increases in PHP itself do not always translate 100% to application performance. Without looking at execution performance on a function level and realizing what is actually taking the time this is a worthless conversation to be frank.But I'd like to understand why what is fairly simple PHP code is apparently not working as some of you seem to expect. Much of the original code goes back to PHP4 days and has been optimised and updated over the years and re-factored a couple of times. It's doing the jobs required and giving response times that clients are happy with in the sub second on intranets. The only PHP7 fixes so far is a few __construct changes from the original named constructor ... the rest of the code is already e_strict clean.So as somebody already said, maybe your code or setup is really busted.Really busted, or spending all its time in a type of operation that ZE3 can't particularly optimize...So where should I be looking to work out why PHP7 seems little better than PHP5. This code is ADOdb and Smarty based with templates which have developed over 10+ years and we can switch on page caching for the static material, but many sites are running with dynamic data such as calling clients from queues and displaying dynamic information pages.ADOdb and Smarty have not had MAJOR releases in several years. Smarty 3.1 was in 2011 while Smarty 3 was in 2010. ADOdb's last major release was in2007. These are your implementation details and things that YOU areleveraging, these are not necessarily a standardized approach. Page caching changes things dramatically as now you're simply requiring things. If your spending time in query execution then thats why there is no significant gain. Just noticed that Smarty team is working on a 3.1.28 relase that plans to be