Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33617 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74458 invoked by uid 1010); 4 Dec 2007 00:13:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74443 invoked from network); 4 Dec 2007 00:13:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2007 00:13:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=shire@tekrat.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=shire@tekrat.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain tekrat.com from 69.63.177.213 cause and error) X-PHP-List-Original-Sender: shire@tekrat.com X-Host-Fingerprint: 69.63.177.213 sizzo.org Received: from [69.63.177.213] ([69.63.177.213:40299] helo=sizzo.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/A2-52978-1BB94574 for ; Mon, 03 Dec 2007 19:13:39 -0500 Received: from [172.21.211.59] (unknown [204.15.20.249]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by sizzo.org (Postfix) with ESMTP id 041DA5272B3; Mon, 3 Dec 2007 16:06:06 -0800 (PST) In-Reply-To: <4754807B.80408@zend.com> References: <4731278C.8020301@chiaraquartet.net> <4731F977.4080502@zend.com> <4753B087.4020206@chiaraquartet.net> <003601c83582$a1b16fc0$e5144f40$@mcnaught@synergy8.com> <4754807B.80408@zend.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: scott.mcnaught@synergy8.com, 'internals Mailing List' Content-Transfer-Encoding: 7bit Date: Mon, 3 Dec 2007 16:13:34 -0800 To: Stanislav Malyshev X-Mailer: Apple Mail (2.752.3) Subject: Re: [PHP-DEV] ignored patches From: shire@tekrat.com (Brian Shire) On Dec 3, 2007, at 2:17 PM, Stanislav Malyshev wrote: >> I am a developer on a CMS also which uses the auto-include >> functionality to >> include many classes over many files. Each request can include up >> to 30 >> different files. The speed increase is around the 15% mark when >> combining >> the files. This is with APC installed too. > > Can you provide some benchmark setups that this could be researched > - i.e. describe what was benchmarked and how to reproduce it? > I've seen this come up before internally at Facebook. Many people do a microtime() test within there code and consider this a definitive benchmark of how fast there script runs. Unfortunately this excludes a lot of work that's done prior to execution. Typically we see people claiming gains from combining files when in actuality they where just excluding the compilation time in their benchmark by moving compilation done via includes() to before the initial script begins executing. When measuring this type of optimization one really must measure outside of PHP using something like an Apache Bench tool so you get an idea of the big picture. I think trying to optimize these also presumes that you're already running a bytecode cache etc. -shire