php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68867 Opcache performance regression
Submitted: 2015-01-20 19:25 UTC Modified: 2015-01-27 22:54 UTC
From: lukemauldin at gmail dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 5.6.4 OS: Windows Server 2008 R2 SP1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lukemauldin at gmail dot com
New email:
PHP Version: OS:

 

 [2015-01-20 19:25 UTC] lukemauldin at gmail dot com
Description:
------------
Git repository with code to reproduce bug: https://github.com/LukeMauldin/laravel-perf

The above Git repository is a standard Laravel application with these routes added:
/showview
/simplejson
/simplepdo/{N}
/simpleeloquent/{N}

I obtained the HTTP response times below (in milliseconds) on a AWS Windows Server 2008 R2 instance using IIS and FastCGI.  I measured using curl on the local instance to prevent any network problems.  They were repeatable over a period of several days.  PHP 5.6 is version 5.6.4  PHP 5.4 is version 5.4.4.  Both use the standard PHP Windows downloads from http://windows.php.net/

Url	PHP 5.4 wo/Opache	PHP 5.4 w/Opache	PHP 5.6 wo/Opache	PHP 5.6 w/Opache
/showview	60	17	51	17
/simplejson	60	16	53	16
/simplepdo/1	70	23	59	23
/simplepdo/100	294	130	197	182
/simpleeloquent/1	85	28	67	29
/simpleeloquent/100	365	260	298	272

PHP 5.6 without Opcache is faster than PHP 5.4 without Opcache, which is expected.  However, with Opcache enabled, PHP 5.4 is faster than PHP 5.6 in the /simplepdo/100 and /simpleeqloent/100 tests which is clearly a regression.  The php.ini section for opcache is the same in both:

[opcache]
opcache.enable = 1
opcache.memory_consumption = 64
opcache.interned_strings_buffer = 12
opcache.max_accelerated_files=16629
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.save_comments = 0
opcache.enable_cli=1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-20 19:27 UTC] lukemauldin at gmail dot com
The exact PHP download files:
php-5.4.4-nts-Win32-VC9-x86.zip
php-5.4.4-nts-Win32-VC9-x86.zip
 [2015-01-27 22:54 UTC] lukemauldin at gmail dot com
-Status: Open +Status: Closed
 [2015-01-27 22:54 UTC] lukemauldin at gmail dot com
Confirmed non-issue by more accurate testing
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC