Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89772 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82857 invoked from network); 9 Dec 2015 16:19:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2015 16:19:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.52 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.52 mail-wm0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:35787] helo=mail-wm0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/97-20458-A9458665 for ; Wed, 09 Dec 2015 11:19:39 -0500 Received: by wmuu63 with SMTP id u63so229592946wmu.0 for ; Wed, 09 Dec 2015 08:19:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=psCxe5bHdbceTrqkBKqoDew+QOj9gIZVPGMWWSBg0eQ=; b=vViKvK1q+e7s48Emn0QYKMpFfDS164ORpqAaJaqAa7UqP8sw6VypKr2zJxfCOM8Ixy OzzP2iqP3POp1eFh8eZrUTr5v+ryxrKskdNL+kLWjsBiaNgvGoTEjgXVWl6leV9+5ZHQ Hafsn2ijrURw0yyz23GSpV0TPnGDMZJ0YwfreegOQxAUwoxMq7tkdTyzXcvZDzgvwDSO Oz9EZ7G1ZQmYGdJu1a0hfOFtMYEyMa8H+CMho1mYdKoYDbAIPE8Qc2YRt4F0Z1KjvK3g cf91TumD9fG61E8z3U1SZi+qQjwADmCIuFXJT7gyJWFBfy6XNEGkcrSTB8jlY/jN1ivq QNWw== 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=psCxe5bHdbceTrqkBKqoDew+QOj9gIZVPGMWWSBg0eQ=; b=JVUMk2XQ5/EtIo2DE1+lMwPucAkwqv0+pYw6xNxRFpgGetsOxk0trsclZ+lZSSYPUE pWMbsF1ZHHp7mVIULKasn4L/Qf/BkWM3h3wBGj85NG4dy4IKF73qkEF0eQDSImnaDQsn iUy1d7tmo/bkP1r4oZExWFtduFPZcH9Okqx9A91Qid7G1TsUMJruIMi8h8Mo2GZwijdO Y3xt39mSsCGKwqI8BSeVoykDaXEyGL5nj6XZFhZle/8yT3OmUy/eCh1p6mgXhC0MRfFZ hbW7wsrW4mzZsNl1zZS5pZwxFyB+ZvFhk5VYUEp3mQuUYblyOV7no5EZJP1PqYH1chvg dGJw== X-Gm-Message-State: ALoCoQmZgT0Ilp3sCEILEte1m1B/EwNETxYciUUZoPwF6E8yqzozEGeBiF1qTqJ+WClx66g6Q7aKDfZOGVtUwHMfxmad/dlC/A== MIME-Version: 1.0 X-Received: by 10.28.228.214 with SMTP id b205mr13097830wmh.46.1449677976024; Wed, 09 Dec 2015 08:19:36 -0800 (PST) Received: by 10.194.22.41 with HTTP; Wed, 9 Dec 2015 08:19:35 -0800 (PST) X-Originating-IP: [77.11.20.80] In-Reply-To: <5667A477.1060308@gmail.com> References: <56662437.5040508@lsces.co.uk> <27359E8F-2C04-416B-861D-C2C4C85E4C77@lerdorf.com> <5666CDDD.6030209@lsces.co.uk> <5667A477.1060308@gmail.com> Date: Wed, 9 Dec 2015 17:19:35 +0100 Message-ID: To: Jefferson Gonzalez Cc: Lester Caine , PHP Internals Content-Type: multipart/alternative; boundary=001a114b14e4ccea5a0526797422 Subject: Re: [PHP-DEV] Practical comparisons on PHP7 From: kontakt@beberlei.de (Benjamin Eberlei) --001a114b14e4ccea5a0526797422 Content-Type: text/plain; charset=UTF-8 On Wed, Dec 9, 2015 at 4:48 AM, Jefferson Gonzalez wrote: > On 12/08/2015 08:32 AM, Lester Caine wrote: > >> On 08/12/15 02:23, Rasmus Lerdorf wrote: >> >>> Ah, I just checked. You have no opcache at all in your PHP 7 setup. And >>> you have eaccelerator configured for PHP 5. So an opcode cached PHP 5 is >>> only 10% faster than a completely unaccelerated PHP 7. That's pretty damn >>> impressive! >>> >> >> Gallery page with heavier load >> Execute Memory Queries Database >> PHP5.4 >> eaccelerator off ... 0.60s 10.14Mb 153 0.39s >> eaccelerator on ... 0.49s 3.57Mb 153 0.39s >> PHP5.6 >> TODO >> PHP7 >> opcache off ... 0.50s 7.00Mb 153 0.30s >> opcache on ... 0.40s 2.00Mb 153 0.30s >> >> I'm still taking the 'twice as fast' claim with a pinch of salt, and I'm >> only seeing opcache is performing as well as eaccelorator, so the idea >> that PHP7 is an 'essential upgrade to improve performance' may have >> relevance with some applications, but for the average user simply >> upgrading the computer may have a better result? >> >> I'm still interested in the idea of improving async operations such as >> not having to wait for all database results until essential, and I'm a >> little curious why the database service time is so much shorter between >> 5 and 7 THAT is the major gain between versions. But I need to check if >> 'Execute' was the total or excludes the database element. I had thought >> it was the total as the 'Server Stats' also includes the percentage of >> time handing database queries. Since exactly the same database service >> is providing both they should be identical so something else is >> affecting that figure. >> >> Bottom line is that given the real world loading on my sites, the >> differences are probably in the noise of network transit times so not >> impressive at all :( >> >> > Well I did my own benchmark with my custom made CMS on AMD bulldozer: > > PHP 5.6 with opcache takes as a median 60ms to render a page. > > PHP 7.0 without opcache takes as a median 30ms to render a page. > > PHP 7.0 with opcache takes 5ms as a median to render a page. > > So as somebody already said, maybe your code or setup is really busted. > PHP 7.0 without opcache can be as twice as fast than PHP 5.6 with opcache, > while PHP 7.0 with opcache maps the floor with PHP 5.6. please take a look at the 90%, 95% and 99% percentiles as well. Medians and Averages are really bad for perf comparisons, especially in isolation. > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a114b14e4ccea5a0526797422--