php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73796 PHP init time is too slow
Submitted: 2016-12-20 21:20 UTC Modified: -
From: spam2 at rhsoft dot net Assigned:
Status: Open Package: Performance problem
PHP Version: 7.0.14 OS:
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: spam2 at rhsoft dot net
New email:
PHP Version: OS:

 

 [2016-12-20 21:20 UTC] spam2 at rhsoft dot net
Description:
------------
Hi

It's great that PHP 7.0 imporved runtime performance and 7.1 even more but someone should also take a look at initialization times

that numbers are the code below straight before our core-cms sends the output-buffer to the client
0.0044 / 0.0019

$runtime = round(($cms_stop_microtime - $_SERVER['REQUEST_TIME_FLOAT']), 4) . ' / ' . round(($cms_stop_microtime - $cms_startup_microtime), 4);
___________________________________

500 Requests

DYNAMIC CMS: 2915 us
STATIC HTM:  158 us
STATIC PHP:  987 us
___________________________________

STATIC PHP is the cms-page saved as HTML but with .php as extension, no code, so 33% of the whole runtime is initialization of PHP - the 158 us is the same file with ,htm


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-20 21:23 UTC] spam2 at rhsoft dot net
that's mod_php - not CGI and so PHP is not unloaded between requests!
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 21:01:41 2019 UTC