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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC