Bug #70613 [Opn]: PHP7 degraded performance
| From: | daniel at theenginuity dot com | Date: | Thu, 15 Oct 2015 16:29:02 +0000 |
| Subject: | Bug #70613 [Opn]: PHP7 degraded performance | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196625@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
User updated by: daniel at theenginuity dot com
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:
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
Previous Comments:
------------------------------------------------------------------------
[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)
------------------------------------------------------------------------
[2015-10-02 04:49:32] daniel at theenginuity dot com
Re-verified Opcache settings in PHP 7.0 RC3, fixed missing opcache.revalidate_freq, all other
settings set to same values as posted.
Request per second for PHP 7.0 = 1245, 1204, 1211
------------------------------------------------------------------------
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