Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74135 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75199 invoked from network); 12 May 2014 19:56:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2014 19:56:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.128.172 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.128.172 mail-ve0-f172.google.com Received: from [209.85.128.172] ([209.85.128.172:53398] helo=mail-ve0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/FA-10689-85721735 for ; Mon, 12 May 2014 15:56:08 -0400 Received: by mail-ve0-f172.google.com with SMTP id oz11so9579485veb.3 for ; Mon, 12 May 2014 12:56:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=kvsnVidlGCIndVY141J4es0HmAkdK8TaktLAOER1dBI=; b=Gt53KlvISBa5EYmQeTzMpEaIaHwYmUnAv5lq+TgGbZXsVt8aSO//Ba9Sx2Xvq09Dwy +ZYAElkHZjo7X6RV+EikU6sK6cwX5gMQbLezNt8e0KIoedVbeTxCc8z5IE93CzTxxwW3 eywSoXydLLlUw30oMvTy5OCP9RIJX9VpS4clPzuy8QuZaQxwloqaS8YdsCiGNg+gCLoK VwXiJziIU+1FFlmB0hAeKbJdpHOam3Ig2O27w70Ry0KDOUDjLFU1dQo+TNa+hMXqWP15 kbcfdk/owTPsfqYGDYEJpveHr7s2o2bDa6YdVz2CWXL3OL8Oecdq8LqHKq+Fn5i6bHdK VJVA== X-Gm-Message-State: ALoCoQnNIEi/pFgZghnx2J6hQQNh7uaTSf37P3P7Bb5OBlUvjRo5LN+OX7sUxC8YeECY8ZgeEs05M5uMvORL9nQ9T6eoQ6F2+yyp7Gs+ZzyzP+Yya5wSE3d+lnXcr8SCnrqkcHSz5a7l MIME-Version: 1.0 X-Received: by 10.52.119.178 with SMTP id kv18mr2303889vdb.39.1399924564936; Mon, 12 May 2014 12:56:04 -0700 (PDT) Received: by 10.52.111.71 with HTTP; Mon, 12 May 2014 12:56:04 -0700 (PDT) In-Reply-To: <5370D35C.8000306@lerdorf.com> 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> Date: Mon, 12 May 2014 23:56:04 +0400 Message-ID: To: Rasmus Lerdorf Cc: Zeev Suraski , Andrea Faulds , Andi Gutmans , Sebastian Bergmann , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7bf0d6c06812d704f93956cd Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: dmitry@zend.com (Dmitry Stogov) --047d7bf0d6c06812d704f93956cd Content-Type: text/plain; charset=UTF-8 FastCGI (non-PIC) 537 req/sec mod_php (non-PIC) 555 req/sec mod_pgp (PIC) 463 req/sec with non-PIC code mod_php is a bit faster than FastCGI (as expected). PIC makes a big difference on x86. Thanks. Dmitry. On Mon, May 12, 2014 at 5:57 PM, Rasmus Lerdorf wrote: > On 5/12/14, 12:21 AM, Dmitry Stogov wrote: > > the performance difference may be significant. > > For example qdig. > > > > mod_php (PIC) 440 req/sec > > FastCGI (non-PIC) 537 req/sec > > > > The bechmark was done with 32-bit build of phpng. > > > > 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. > > 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 > > --047d7bf0d6c06812d704f93956cd--