Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74314 invoked by uid 1010); 21 May 2007 06:37:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74298 invoked from network); 21 May 2007 06:37:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2007 06:37:13 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:25968] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/3A-05892-91E31564 for ; Mon, 21 May 2007 02:37:13 -0400 Received: from [127.0.0.1] ([192.168.17.30]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 20 May 2007 23:37:10 -0700 Message-ID: <46513E0F.6020105@zend.com> Date: Sun, 20 May 2007 23:37:03 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Stefan Esser CC: Cristian Rodriguez , internals@lists.php.net References: <465022BE.1020905@hardened-php.net> <7d5a202f0705201415s71982fd2jb61b8bffbb7ba6de@mail.gmail.com> <46513546.5000303@zend.com> <7d5a202f0705202303s2ff4d0cdg1157c1e245c3c2e4@mail.gmail.com> <46513745.7030701@zend.com> <46513AC8.6020703@hardened-php.net> In-Reply-To: <46513AC8.6020703@hardened-php.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 May 2007 06:37:11.0237 (UTC) FILETIME=[760B2F50:01C79B72] Subject: Re: [PHP-DEV] Dismantling the lies... From: stas@zend.com (Stanislav Malyshev) > bench.php is a totally unrealistic benchmark that has nothing todo with > real life PHP applications. Of course when you call a function several It tests the engine speed. Of course, in life of PHP script there are other things, that's why I said "and" - to put it in context. > million times the performance penalty will be big if you add code that > executed with every function call. But in reality PHP applications don't > call millions of functions. Most of the waiting time in PHP applications Maybe not millions for typical application, but thousands and tens of thousands - they do. In any case, the patch in question added function call (or at the very best branch) with every variable access - which could be millions. > is waiting for disk/DB I/O operations. That's why people do caching. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/