Bug #70613 [Opn->Csd]: PHP7 degraded performance

From: Date: Mon, 19 Oct 2015 16:46:57 +0000
Subject: Bug #70613 [Opn->Csd]: PHP7 degraded performance
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196687@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
+Status:             Closed
 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 discovered my error in the opcache as suggested by rasmus and have executed a new set of
performance tests with the standard install of Wordpress 4.3.1

Closing this ticket since PHP7 RC4 is significantly faster. Thank you.

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) = 108.0 MB
PHP 7.0 RC4 Request Per Second (3 Test Runs) = 28.72, 30.22, 30.01


Previous Comments:
------------------------------------------------------------------------
[2015-10-15 20:21:19] rasmus@php.net

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

------------------------------------------------------------------------
[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?

------------------------------------------------------------------------


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


Thread (11 messages)

« previous php.bugs (#196687) next »