Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28146 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15365 invoked by uid 1010); 26 Feb 2007 03:16:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15350 invoked from network); 26 Feb 2007 03:16:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Feb 2007 03:16:34 -0000 X-Host-Fingerprint: 82.71.52.53 82-71-52-53.dsl.in-addr.zen.co.uk Received: from [82.71.52.53] ([82.71.52.53:7137] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/38-50853-01152E54 for ; Sun, 25 Feb 2007 22:16:33 -0500 Message-ID: To: internals@lists.php.net Date: Mon, 26 Feb 2007 03:16:27 +0000 Reply-To: info@a-wing.co.uk Organization: A-Wing Internet Services User-Agent: Thunderbird 2.0b2 (Macintosh/20070116) MIME-Version: 1.0 References: <34.6F.06593.37802E54@pb1.pair.com> <45E20EE6.9000809@zend.com> <84.C1.06593.8A412E54@pb1.pair.com> <45E219FF.6040608@zend.com> <45E21D0C.9060101@zend.com> In-Reply-To: <45E21D0C.9060101@zend.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 82.71.52.53 Subject: Re: [PHP-DEV] PHP 5.2.1 twice as slow? From: info@a-wing.co.uk (Andrew Hutchings) Antony Dovgal wrote: > I believe updating GCC to the latest version (4.1.2) might also help, > GCC 4.1.x is known to be extremely picky in some cases. I didn't feel like overhauling GCC just this minute so instead I used GCC 3.4.6 that is also in this box with just the -O2 and -march=i386 flags and and got the following results (I meant to compile 5.2.0 instead of 5.1.6 but they always give similar results for me anyway): PHP 5.1.6 --------- simple 0.271 simplecall 0.456 simpleucall 0.726 simpleudcall 0.784 mandel 0.943 mandel2 1.191 ackermann(7) 0.784 ary(50000) 0.056 ary2(50000) 0.049 ary3(2000) 0.461 fibo(30) 1.856 hash1(50000) 0.091 hash2(500) 0.095 heapsort(20000) 0.282 matrix(20) 0.255 nestedloop(12) 0.404 sieve(30) 0.244 strcat(200000) 0.053 ------------------------ Total 9.002 PHP 5.2.1 --------- simple 0.507 simplecall 0.945 simpleucall 1.493 simpleudcall 1.687 mandel 2.178 mandel2 2.950 ackermann(7) 1.939 ary(50000) 0.110 ary2(50000) 0.087 ary3(2000) 1.140 fibo(30) 4.265 hash1(50000) 0.220 hash2(500) 0.225 heapsort(20000) 0.591 matrix(20) 0.430 nestedloop(12) 0.786 sieve(30) 0.417 strcat(200000) 0.424 ------------------------ Total 20.395 The fact that the strcat test is so much slower may help diagnose where the delay is coming from, I am guessing at memory allocation. Regards Andrew -- Andrew Hutchings - Linux Jedi - http://www.linuxjedi.co.uk/ A-Wing Internet Services - http://www.a-wing.co.uk/ Windows is the path to the darkside...Windows leads to Blue Screen. Blue Screen leads to downtime. Downtime leads to suffering...I sense much Windows in you.