Stephen Zarkos wrote:
> Stas Malyshev wrote:
> >> So I suppose the question I have to ask is what the f**k am I doing
> >> wrong on the windows setup? I've always known that linux was faster,
> >> but 4 times faster on the same hardware? My main development
> machine
> >> is giving 27.750 seconds which is even nicer,
> >
> > CPU-bound ops should be roughly the same speed on Windows and Linux
> > since the code is basically the same. If they're not I guess the best
> > way would be to profile it. File ops on windows are significantly
> > slower because Windows FS is slower than Linux one.
> > The difference can also be in compiler options - whci optimizations
> > are chosen, etc..
>
> The x86 build of PHP is direct off the windows.php web site, and the Linux on
> is via SUSE package handler. When I get some time I will try a 'command line'
> run to avoid Apache and see if that is getting in the way.
>
> The slower spec Vista box is running a bit faster than on Windows 7, but I
> need to update to 5.3.8 on that ... again I'll do an x86 install before the
x64
> and benchmark both if only for my own information. That machine needs
> updating to W7, but I still have a remote site that 'needs' vista to access
it's
> VPN software:(
>
Apache does tend to be slower on Windows. I think it would be worthwhile to
test using the typical IIS/FastCGI configuration or CLI on Windows. For
example, on my server I see a total ~44sec with Apache, and ~31sec using either
IIS or CLI (W2K8R2, PHP 5.3.8 x86). If you do end up profiling this I would be
very interested to see what you find.
My own reasoning for using Apache is that the configuration is identical between
the Linux boxes and the Windows ones. I don't want to be having to build
different installations especially where we are running multiple site via
Apache. That and we still have W2k or XP Home on many sites, so no IIS ;)
My single core XP Home machine is giving 77 seconds for the benchmark, which is
more in line with what I would expect, and running from the command line, it
drops to 75 seconds, so Apache is not getting in the way too much.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php