Re: Why so slow in Windows?
| From: | Umberto Salsi | Date: | Mon, 10 Feb 2014 17:38:38 +0000 |
| Subject: | Re: Why so slow in Windows? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322806@lists.php.net to get a copy of this message | ||
Sebastian Krebs <krebs.seb@gmail.com> wrote:
> 2014-02-10 15:32 GMT+01:00 Umberto Salsi <salsi@icosaedro.it>:
>
> > Hi, I'm testing a PHP program to be relased as open-source (PHPLint) which
> > performs a detailed analisis of PHP source programs:
> >
>
> No offense, but PHP can do this on it's own: "php -l filename.php"
PHPLint does a bit more that php -l... Anyway, it's not this the point.
> >
> > * CLI only, no WEB,
> > * no network connection involved,
> > * no data base,
> > * minimal disk activity required to load the source of the program
> > and the sources of the files to be parsed (less than 500 KB);
> > * the php.ini is very minimalistic, with no extension modules at all, same
> > exact php.ini file on Linux and Windows.
> >
> > Observed:
> > * CPU 100 % all the time.
> > * No disk activity.
> > * No net activity.
> > * Only php.exe running on Windows (php-cli on Linux).
> >
> > Now, the performances trying to validate something moderately complex
> > (itself):
> >
> > 1) Slackware Linux 12.1, Pentium 4, 32 bits, 1,6 GHz,
> > PHP-CLI 5.3.6-dev (quite old, but still working :-):
> > 26 s * 1.6 GHz = 42 Gcycles.
> >
> > 2) Windows Vista Business, Pentium E5300, 32 bits 2.6 GHz,
> > PHP-CLI 5.3.10-nts:
> > 132 s * 2.6 GHz = 343 Gcycles
> >
> > 3) Windows Vista Business, Pentium E5300, 32 bits 2.6 GHz,
> > (same PC of point 2 above)
> > PHP-CLI 5.5.9-nts (LAST RELEASE!):
> > 111 s * 2.6 GHz = 289 Gcycles
> >
> >
> > If performances can be measured as number of CPU cycles, PHP-CLI on Windows
> > is from 6 to 7 times slower than on Linux.
> I don't think you can measure it this way. What tells you, that nothing
> else consume CPU-time?
The fact that "task Manager" tells me that the "php.exe" process is taking all
the CPU.
Regards,
___
/_|_\ Umberto Salsi
\/_\/ www.icosaedro.it