Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74047 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37688 invoked from network); 8 May 2014 01:56:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 May 2014 01:56:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.192.180 cause and error) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 209.85.192.180 mail-pd0-f180.google.com Received: from [209.85.192.180] ([209.85.192.180:45619] helo=mail-pd0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/11-31332-464EA635 for ; Wed, 07 May 2014 21:56:53 -0400 Received: by mail-pd0-f180.google.com with SMTP id y10so1788000pdj.25 for ; Wed, 07 May 2014 18:56:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=p2WbZxQHMQ4JAgv8JxItN1/cUNIkWZqNP+jV/Nhg8HE=; b=g9e2wo+hI9SbP0Me/yAgc3swSyYhLR8f8FLSNOMSPHL1X4QJdANYKEXHJU0AkJpSE1 dz8y43PdkS4w7t+qeBNk26xTv1HQyzrhEet9n3/biGTQA/BwRP/pYe6aqKfqR0r3BPwV oj5C4fs8HM/mOkauAaPIKprHXX8739yBf3o6Oayy5+UHpK4hYjTH69QMSn/YlCAitJfU P+VeM6iMEXgf+aSmPGfHP2rKHppua862QQr0NTFEB8bzbz0GvNo8WuXMlZbyFETAb95B sMvRGANCXPE8FmJJTNpr0ayq8Q77toKaxNkRCR4B6t8PD+H6P5ll/BMrLqX/4pmmumok Cx4A== X-Gm-Message-State: ALoCoQnwbKqsxd2PEb1/exQp/EOrL+E/bTwndxkrF28Grz/OL+9cpAqWMIRx5JRfQSnp0fDr4nOA/vnHxMnEwI6tXLJTAiu7643Y4gw5nBF3iib08Fn0sZ4U0LeeItD/eGWt3JqiWacz X-Received: by 10.66.252.135 with SMTP id zs7mr1433774pac.13.1399514208755; Wed, 07 May 2014 18:56:48 -0700 (PDT) Received: from [192.168.1.112] (c-24-130-225-174.hsd1.ca.comcast.net. [24.130.225.174]) by mx.google.com with ESMTPSA id au16sm120854498pac.27.2014.05.07.18.56.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 18:56:47 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) In-Reply-To: <536A8E5C.4020606@sugarcrm.com> Date: Wed, 7 May 2014 18:56:45 -0700 Cc: Dmitry Stogov , Ferenc Kovacs , Zeev Suraski , Sebastian Bergmann , "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: References: <5369CED9.5010001@php.net> <4339111475046055305@unknownmsgid> <536A8E5C.4020606@sugarcrm.com> To: Stas Malyshev X-Mailer: Apple Mail (2.1874) Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: andi@zend.com (Andi Gutmans) On May 7, 2014, at 12:49 PM, Stas Malyshev = wrote: > Hi! >=20 >> I recently converted apache2handler to support phpng and it's = appeared >> significantly slower than FastCGI and FPM. >=20 > Do we know why? I would assume since FastCGI has additional data hop > (between webserver and the actual PHP binary) Apache one would be = faster > but looks like it's not so. It'd be interesting to know why. I think in some cases the benchmarks I=92ve seen are not = apples-to-apples. I would also like to see this on true apples to = apples. [assuming no static files are served]. By the way, at some point there was one reason for FastCGI to be faster = - php-cgi was non-PIC while mod_php.so was PIC. But I believe on Linux = you can have shared libraries that are non-PIC. [PIC meaning position = independent code]. Andi