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

From: Date: Fri, 07 Oct 2016 11:58:43 +0000
Subject: Bug #73265 [NEW]: PHP7 dramatically slower in some cases
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204530@lists.php.net to get a copy of this message
From: spam2 at rhsoft dot net Operating system: Linux PHP version: 7.0.11 Package: Performance problem Bug Type: Bug Bug description:PHP7 dramatically slower in some cases 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 bug report at https://bugs.php.net/bug.php?id=73265&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73265&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73265&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73265&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73265&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73265&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73265&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73265&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73265&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73265&r=support Expected behavior: https://bugs.php.net/fix.php?id=73265&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73265&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73265&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73265&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73265&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73265&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73265&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73265&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73265&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73265&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73265&r=mysqlcfg

« previous php.bugs (#204530) next »