Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38049 invoked from network); 12 May 2014 13:57:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2014 13:57:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.192.51 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.192.51 mail-qg0-f51.google.com Received: from [209.85.192.51] ([209.85.192.51:53241] helo=mail-qg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/84-10689-263D0735 for ; Mon, 12 May 2014 09:57:54 -0400 Received: by mail-qg0-f51.google.com with SMTP id q107so7730406qgd.10 for ; Mon, 12 May 2014 06:57:51 -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=oi1hfYwfWCaivS40At9uBfvjGzjlVipMdi1KLAbpAPY=; b=Zz3YrYUJ5aZo6Uwz8U2+T1Ojz8po4DtY2U2tREgQOPv654qtsWKFae0qXrlfg0MK5v wuqNrOB1fKBYPdEPt1KVniUPqIYuebXWrpXagl2ltha79wRmIocDaTEyRw24CnimVuuV 99fV98TGP+pU+NVMNcMLbYam20w3VsRqQqaVCUEF0FwjrsCbrTSeDpvYaysQuPKLD0hl CDPdopPVFUVHM6shQLVUkUToSg7cvAOml61xl3Xev4jh1wZ6tNqLn7Lb0A8EN+P0qyc9 ZTtuVg3l8MfPByrBLEpD+Q5Aj/09geBpaBtd0RY49KI0ga1O8sWdKILvHDiViCNx+Kc/ Ef3Q== X-Gm-Message-State: ALoCoQl/QRUXL2M8zsXYUTYFxrOQPOekQtW4i7on6xMeuG4cr8yIO5JcwryrzhtsqFM7Ji08FH1R X-Received: by 10.224.92.144 with SMTP id r16mr38890565qam.10.1399903071721; Mon, 12 May 2014 06:57:51 -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 f7sm21638851qar.42.2014.05.12.06.57.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 May 2014 06:57:50 -0700 (PDT) Message-ID: <5370D35C.8000306@lerdorf.com> Date: Mon, 12 May 2014 06:57:48 -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> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cOWTLLanKiWdf4fvgV1G2fFXdM34GP1FD" Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: rasmus@lerdorf.com (Rasmus Lerdorf) --cOWTLLanKiWdf4fvgV1G2fFXdM34GP1FD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 5/12/14, 12:21 AM, Dmitry Stogov wrote: > the performance difference may be significant. > For example qdig. >=20 > mod_php (PIC) 440 req/sec > FastCGI (non-PIC) 537 req/sec >=20 > The bechmark was done with 32-bit build of phpng. >=20 > I didn't get time to investigate it in all details, but it'll really > make sense. But on 32-bit mod_php (libphp5.so) doesn't need to be PIC, does it? We went through this many years ago and worked out that a non-PIC libphp5.so works fine. Things are a bit different on 64-bit because of 32-bit immediate operands= =2E However, I don't really believe that PIC vs. non-PIC accounts for anywhere near a 20% performance difference in a real-world scenario. Can you build phpng non-pic and run the same test again? -Rasmus --cOWTLLanKiWdf4fvgV1G2fFXdM34GP1FD 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 iEYEARECAAYFAlNw010ACgkQlxayKTuqOuARXgCeMzgOqFaActIXwSbdXFqbQkjd CYsAniLIS3n2pIZhuGe0xgn4asVdWFaU =4GKc -----END PGP SIGNATURE----- --cOWTLLanKiWdf4fvgV1G2fFXdM34GP1FD--