Bug #70613 [Opn]: PHP7 degraded performance

From: Date: Thu, 15 Oct 2015 20:21:20 +0000
Subject: Bug #70613 [Opn]: PHP7 degraded performance
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196629@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70613&edit=1 ID: 70613 Updated by: rasmus@php.net Reported by: daniel at theenginuity dot com Summary: PHP7 degraded performance Status: Open Type: Bug Package: Performance problem Operating System: Ubuntu 14.04 x86_64 PHP Version: 7.0.0RC4 Block user comment: N Private report: N New Comment: Ok, so there is something whacky about your environment since dozens of other people have tested Wordpress and are not seeing this slowdown at all. Quite the opposite in fact. You will need to dig in and figure out where the slowdown is happening. Try using perf. It is described here: https://perf.wiki.kernel.org/index.php/Main_Page Previous Comments: ------------------------------------------------------------------------ [2015-10-15 16:29:01] daniel at theenginuity dot com I started with a real-world application but wanted to isolate it down to a simple script that would help with reproducing the results. I have conducted more performance tests, this time using a standard install of Wordpress 4.3.1 Results: PHP 5.6.14 Average Memory Usage (Start of Test) = 33.9 MB PHP 5.6.14 Average Memory Usage (End of Test) = 152.3 MB PHP 5.6.14 Request Per Second (3 Test Runs) = 13.93, 13.87, 13.84 PHP 7.0 RC4 Average Memory Usage (Start of Test) = 9.4 MB PHP 7.0 RC4 Average Memory Usage (End of Test) = 321.0 MB PHP 7.0 RC4 Request Per Second (3 Test Runs) = 7.06, 7.22, 7.21 ------------------------------------------------------------------------ [2015-10-13 16:10:23] rasmus@php.net I am not sure why you care about the performance of a trivial script like that. Install a real app and test. If you still see a performance problem with something real, let us know. ------------------------------------------------------------------------ [2015-10-13 15:40:39] daniel at theenginuity dot com Executed new performance tests with latest versions of PHP and observed the following results: PHP 5.6.14 Average Memory Usage (Start of Test) = 33.9 MB PHP 5.6.14 Average Memory Usage (End of Test) = 36.3 MB PHP 5.6.14 Request Per Second (3 Test Runs) = 1043, 1039, 1034 PHP 7.0 RC3 Average Memory Usage (Start of Test) = 9.6 MB PHP 7.0 RC3 Average Memory Usage (End of Test) = 17.1 MB PHP 7.0 RC3 Request Per Second (3 Test Runs) = 959, 904, 939 PHP 7.0 RC4 Average Memory Usage (Start of Test) = 9.4 MB PHP 7.0 RC4 Average Memory Usage (End of Test) = 17.0 MB PHP 7.0 RC4 Request Per Second (3 Test Runs) = 971, 974, 974 ------------------------------------------------------------------------ [2015-10-02 13:51:00] daniel at theenginuity dot com Updated bug to RC3, will compile RC4 and will verify if any changes are observed in performance. I can help debug this further if anyone would like more detailed information? ------------------------------------------------------------------------ [2015-10-02 11:37:59] kalle@php.net Have you tried out RC4? (PHP version says RC4 in the bug report, but comments state RC3, so just wondering) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=70613 -- Edit this bug report at https://bugs.php.net/bug.php?id=70613&edit=1

« previous php.bugs (#196629) next »