Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28153 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62946 invoked by uid 1010); 26 Feb 2007 11:45:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62931 invoked from network); 26 Feb 2007 11:45:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Feb 2007 11:45:56 -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:27155] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/02-39127-278C2E54 for ; Mon, 26 Feb 2007 06:45:55 -0500 Message-ID: To: internals@lists.php.net Date: Mon, 26 Feb 2007 11:45:48 +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> <45E2908B.6000107@zend.com> In-Reply-To: <45E2908B.6000107@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'm sure if won't see any difference if you run the bench a dozen of > times, the results depend on current system status. > I've just compiled both 5.2.0 and 5.2.1 on my low powered trash box (a 1GHz ViA EPIA) using: ./configure --disable-all --disable-cgi No CFLAGS were set and the box runs Ubuntu Edgy. My aim was a totally different environment to test with. GCC is version 4.1.2 (OS Default). php-5.2.0/sapi/cli/php bench.php simple 2.622 simplecall 2.935 simpleucall 4.277 simpleudcall 6.107 mandel 7.914 mandel2 9.700 ackermann(7) 6.233 ary(50000) 0.412 ary2(50000) 0.331 ary3(2000) 5.757 fibo(30) 13.147 hash1(50000) 0.641 hash2(500) 0.662 heapsort(20000) 2.153 matrix(20) 1.922 nestedloop(12) 4.542 sieve(30) 2.295 strcat(200000) 0.288 ------------------------ Total 71.940 php-5.2.1/sapi/cli/php bench.php simple 2.705 simplecall 3.045 simpleucall 4.483 simpleudcall 5.382 mandel 8.263 mandel2 10.415 ackermann(7) 6.453 ary(50000) 0.439 ary2(50000) 0.360 ary3(2000) 5.780 fibo(30) 14.413 hash1(50000) 0.685 hash2(500) 0.699 heapsort(20000) 2.221 matrix(20) 1.970 nestedloop(12) 4.678 sieve(30) 2.343 strcat(200000) 1.597 ------------------------ Total 75.932 These results vary by +/- 1 second on this box, the thing I find most interesting is the strcat test is slow in this as well. I am guessing the actually processing time is a lot slower on this box hence why my tests show a minimal difference in time in this case. My guess is it is something to do with the memory handler but I have no time left to gather any more evidence or delve into the source. 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.