Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74140 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90234 invoked from network); 12 May 2014 23:55:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2014 23:55:13 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.216.49 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.49 mail-qa0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:62656] helo=mail-qa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/90-17377-E5F51735 for ; Mon, 12 May 2014 19:55:12 -0400 Received: by mail-qa0-f49.google.com with SMTP id cm18so7677335qab.8 for ; Mon, 12 May 2014 16:55:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=t22oMYFGrjcHy1vOysvnM6aebN8MBz5DAhEl4otSDpo=; b=Q0HXyq+GakP7UEXPJHItlcW1dBvYnLWs6sKk6u1Mgkj/9sxLNOCQ8rfZMWCCHvmdRP 386vayqgcLxD5vVQ39kDZB/Ts3b1npqq0YSQr4k4OzdxuV9oSyi1nvL4va55Tc/hFUT9 1/EkkUx8vJpUoyLV/AhWaNdkws4wLILY3XwEc4jfbt6XfvXevzjS+wsUzsvsKF/uJu9g k6BSxOlq/QxpcbqXOkD2yU9MjdsanVOip8Kq5r+18mXOQ7LW5dYFFGXsqcSinBsl4/n6 S0TeoQ3ubGa89U564G+gr6Ujvcg7VnQwkeXvBn40j1wkgr6q8IzCUJ0Z8vLTJr/uCBe3 M8fQ== X-Gm-Message-State: ALoCoQlOOMYas5usoDTkPtWL+icunRzwWLCeA8ed8vO8Tby+n7sKVx4AbuZpJsnF3y2O+Idwmieh X-Received: by 10.140.88.83 with SMTP id s77mr8779237qgd.113.1399938908484; Mon, 12 May 2014 16:55:08 -0700 (PDT) Received: from [192.168.200.30] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPSA id 39sm10865505qgo.22.2014.05.12.16.55.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 May 2014 16:55:07 -0700 (PDT) Message-ID: <53715F59.6070203@lerdorf.com> Date: Mon, 12 May 2014 16:55:05 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Dmitry Stogov CC: Zeev Suraski , Andrea Faulds , Andi Gutmans , Sebastian Bergmann , "internals@lists.php.net" References: <5369CED9.5010001@php.net> <4339111475046055305@unknownmsgid> <578A5A21-A820-42AD-A218-FB8049F63B82@zend.com> <3A72C770-9A9F-40C9-9DFE-F40478709BA8@ajf.me> <311084565853739035@unknownmsgid> <536BA9FE.1090408@lerdorf.com> <5370D35C.8000306@lerdorf.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GH7HQaQU6UxoPrvP03GcxHCFcH9Ospv3b" Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: rasmus@lerdorf.com (Rasmus Lerdorf) --GH7HQaQU6UxoPrvP03GcxHCFcH9Ospv3b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 5/12/14, 12:56 PM, Dmitry Stogov wrote: > FastCGI (non-PIC) 537 req/sec > mod_php (non-PIC) 555 req/sec > mod_pgp (PIC) 463 req/sec >=20 > with non-PIC code mod_php is a bit faster than FastCGI (as expected). >=20 > PIC makes a big difference on x86. I wonder if the difference is as large on x86_64. You tested only on 32-bit x86, right? Also, even with FastCGI, you are going to be linking in a whole bunch of PIC shared libraries. So in a realworld app that makes lots of calls into these libraries you are still going to have jump table function call overhead. Another thought. Since PIC overhead is on function calls and our default VM is CALL, perhaps using SWITCH or GOTO instead might help here? And if it does it might make sense to change the default now that the world is 64-bit and we can't compile non-PIC anymore. -Rasmus --GH7HQaQU6UxoPrvP03GcxHCFcH9Ospv3b Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - https://gpgtools.org iEYEARECAAYFAlNxX1oACgkQlxayKTuqOuBrCQCfYylqD1XvUPGT5jDrEsDNuA33 bJQAn2pdS7R92X7UtVIJ43YJhPFTjRhY =eTO5 -----END PGP SIGNATURE----- --GH7HQaQU6UxoPrvP03GcxHCFcH9Ospv3b--