|
Posted by Andy Hassall on 10/04/15 11:57
On 6 Sep 2006 03:13:39 -0700, "Skrol29" <skrol29@freesurf.fr> wrote:
>In order to encircle a problem of performance we have with our PHP
>scripts, we were brought the make the following test. We take a
>standard HTML page of our site, and we make a copy of this file but
>renaming it with the PHP extension. This way, those two HTML and PHP
>files have exactly the same content which is entirely HTML without any
>PHP tags, neither PHP commands.
>
>The we benched the time for displaying those pages (using FireFox):
>Source HTML + extension HTML + called from Locale Machine => 0,5 sec
>Source HTML + extension PHP + called from Locale Machine => 0,5 sec
>Source HTML + extension HTML + called from Local Network => 0,5 sec
>Source HTML + extension PHP + called from Local Network => 4 sec (!!)
>
>All Calls are made with the same URL in http://....
>This behavior is the same on several client PC we've tested in our
>Local Network.
>
>The server is Win2000 + Pentium III-800 + 256 Mb Ram. Apache 2.0.55 +
>PHP 5.1.6 are manually installed and running, the server has no other
>specific software. There is no anti-virus, no fire-wall.
>
>Do you have an idea of what can cause pages passed by the PHP
>interpreter to be dramatically slowed down only when they are called
>via the locale network ?
A wild guess; do you have compression enabled for static pages (e.g. on Apache
that'd be mod_deflate), but not enabled for PHP (e.g. using
zlib.output_compression)?
How big is the page, and how fast is the network? If the page is small and the
network fast, then this probably isn't the issue.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|