Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55885 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43185 invoked from network); 21 Oct 2011 19:34:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2011 19:34:50 -0000 Authentication-Results: pb1.pair.com header.from=Stephen.Zarkos@microsoft.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=Stephen.Zarkos@microsoft.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain microsoft.com designates 131.107.115.214 as permitted sender) X-PHP-List-Original-Sender: Stephen.Zarkos@microsoft.com X-Host-Fingerprint: 131.107.115.214 smtp.microsoft.com Received: from [131.107.115.214] ([131.107.115.214:31949] helo=smtp.microsoft.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/03-22928-859C1AE4 for ; Fri, 21 Oct 2011 15:34:49 -0400 Received: from TK5EX14MLTC104.redmond.corp.microsoft.com (157.54.79.159) by TK5-EXGWY-E803.partners.extranet.microsoft.com (10.251.56.169) with Microsoft SMTP Server (TLS) id 8.2.176.0; Fri, 21 Oct 2011 12:34:46 -0700 Received: from TK5EX14MBXC119.redmond.corp.microsoft.com ([169.254.10.13]) by TK5EX14MLTC104.redmond.corp.microsoft.com ([157.54.79.159]) with mapi id 14.01.0339.002; Fri, 21 Oct 2011 12:34:46 -0700 To: Lester Caine , PHP internals Thread-Topic: [PHP-DEV] Benchmarking ... Thread-Index: AQHMjktT2YlAV1+jgEmM4yPQcUA8t5WFIOYAgAAxtwCAANHmgIAA9XQAgABnbQCAAAzPgP//ovQw Date: Fri, 21 Oct 2011 19:34:44 +0000 Message-ID: References: <4E9EA80F.8030607@lsces.co.uk> <4E9FD2C2.7070707@lsces.co.uk> <4EA150BC.7030107@lsces.co.uk> <4EA1A77E.9040009@sugarcrm.com> <4EA1B23D.90904@lsces.co.uk> In-Reply-To: <4EA1B23D.90904@lsces.co.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [157.54.51.71] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] Benchmarking ... From: Stephen.Zarkos@microsoft.com (Stephen Zarkos) > 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.. >=20 > The x86 build of PHP is direct off the windows.php web site, and the Linu= x on > is via SUSE package handler. When I get some time I will try a 'command l= ine' > run to avoid Apache and see if that is getting in the way. >=20 > 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 t= he 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 acce= ss it's > VPN software :( >=20 Apache does tend to be slower on Windows. I think it would be worthwhile t= o 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 ei= ther 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. Steve