Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45328 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64831 invoked from network); 21 Aug 2009 17:04:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2009 17:04:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=basant.kukreja@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=basant.kukreja@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.230 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: basant.kukreja@gmail.com X-Host-Fingerprint: 209.85.198.230 rv-out-0506.google.com Received: from [209.85.198.230] ([209.85.198.230:32460] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/CD-26842-8B3DE8A4 for ; Fri, 21 Aug 2009 13:04:56 -0400 Received: by rv-out-0506.google.com with SMTP id l9so297427rvb.23 for ; Fri, 21 Aug 2009 10:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=f/A8qYdheoPkOxkBYcrNup4lrnRYhJXhiD/cQJiiX6s=; b=LjQEcjm6a62X9wZDDRv24dt0wiQ9lrzz+j57yvQ0twPJ5nH7DNkilew7qRXD0V9w8d LkKOx/nfPoQGho+EoHVmQDcXUgSO6BehNYgRUcK/MzVHDGqGEpw5BafGCgMOtiI6tjRj 5jNtWrgctQW2T2fLv+zsmcy19olNiacvaiGhg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=oTiIUN0jsILxdZ5Pe4mhToInfqpVdjRvOYWVbZxYIZ/1pfSj7wyCzGEg27axi9W4Ta GMyoEOFjcFlRT+tF7a3lj0hce2BriDfZYkff7frFSF//awgjkiVXIyg/W1jr2ZC+BW5R Qfe1mVcg2ISUw19n8sn6IQBpKcyUqVB7XaXkE= Received: by 10.140.174.14 with SMTP id w14mr677212rve.285.1250874293590; Fri, 21 Aug 2009 10:04:53 -0700 (PDT) Received: from dhcp-usca17-121-65.red.iplanet.com ([192.18.121.65]) by mx.google.com with ESMTPS id k41sm5804788rvb.47.2009.08.21.10.04.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 21 Aug 2009 10:04:53 -0700 (PDT) Message-ID: <78B9154C-501F-4973-A9D1-2F10C94509B8@gmail.com> To: internals@lists.php.net In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Fri, 21 Aug 2009 10:06:36 -0700 References: <465610226.20090816150239@scriptolutions.com> <1035866081.20090816155804@scriptolutions.com> <613920271.20090817005351@scriptolutions.com> X-Mailer: Apple Mail (2.935.3) Subject: Re: Re[5]: [PHP-DEV] Design of the Zend Engine's Instruction Set From: basant.kukreja@gmail.com (Basant Kukreja) On Aug 16, 2009, at 2:25 PM, Paul Biggar wrote: > >> I've seen that you talked about branch prediction misses in your >> paper. Did you ever tried to compile the original PHP with different >> compilers, for example from intel or sun studio? Did you test or have >> you ever heard of someone who tested the influence of the profiling >> feedback that modern C compilers offer? (Well don't ask me - it's >> somewhere on my TODO list - but i also haven't had the time yet). > > I tried FDO with gcc 4.4 on phc generated code, but not on the PHP > interpreter. I've not looked at other compilers either. > I tried Sun Studio 12 feedback profile based optimization on Solairs sparc and found only a small gain (~1.5%) in a ecommerce php application. Moreover feedback optimizations works sometimes if it is trained with same set of samples (which I avoided in my measurements). Feedback optimization however helped me find out where compiler is doing additional inlining. Coolstack provided php binaries which is compiled with Studio 12 feedback optimization. Basant.