Bug #73265 [Opn]: PHP7 dramatically slower in some cases

From: Date: Fri, 07 Oct 2016 13:40:10 +0000
Subject: Bug #73265 [Opn]: PHP7 dramatically slower in some cases
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204531@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73265&edit=1 ID: 73265 Updated by: nikic@php.net Reported by: spam2 at rhsoft dot net Summary: PHP7 dramatically slower in some cases Status: Open Type: Bug Package: Performance problem Operating System: Linux PHP Version: 7.0.11 Block user comment: N Private report: N New Comment: Assuming you've already considered all the obvious causes (configuration and especially opcache), I'd suggest running your CMS through "perf record" + "perf report" and see what the top elements look like (on both versions). Additionally it wouldn't hurt to use strace to check whether there are any significant differences in IO/syscalls. Previous Comments: ------------------------------------------------------------------------ [2016-10-07 11:58:40] spam2 at rhsoft dot net Description: ------------ we have two different inhouse cms-systems, while one is 46% faster with PHP7 the other one sucks terrible - are there things known by developers which are internally slower now while most other become afster and should be avoided? my first guess was mbstring but it's not, i have setup a cli environment with both php-versions + modules and a shell wrapper "php5" and "php7" and until now i am not able to find any isolted peice of code with a PHP7 slowdown it looks like others see similar results https://laracasts.com/discuss/channels/general-discussion/is-it-just-me-or-is-php-7-slow unluckily the cms developed by me is the faster one and now both have a difference of factor 30-36 Requests per second: 107.24 [#/sec] (mean) Time per request: 279.741 [ms] (mean) Time per request: 9.325 [ms] (mean, across all concurrent requests) Transfer rate: 1531.03 [Kbytes/sec] received Requests per second: 56.30 [#/sec] (mean) Time per request: 532.864 [ms] (mean) Time per request: 17.762 [ms] (mean, across all concurrent requests) Transfer rate: 803.75 [Kbytes/sec] received Test script: --------------- impossible to provide :-( Expected result: ---------------- have at least the same performance but not half Actual result: -------------- massive slowdown ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73265&edit=1

« previous php.bugs (#204531) next »