Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89748 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72545 invoked from network); 8 Dec 2015 14:27:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2015 14:27:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wm0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:38428] helo=mail-wm0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/6A-31749-DC8E6665 for ; Tue, 08 Dec 2015 09:27:26 -0500 Received: by wmec201 with SMTP id c201so31918770wme.1 for ; Tue, 08 Dec 2015 06:27:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rp5AKeX3aoGJ1NJeV5u5IkAyw5wHBpnSKMA4Qwxvlao=; b=kL82/DI8D8UjJqOe33/tq9z7/ocmPIzSRTShvPBsL+Tn+Hcu5hLwtdOo5wWw0/ah6a UHGW8lDJyoD6YoO/MmhsDuUbPur5Fzcf3qqiCE5FVP1nG0YJq9Vs5wRoTCBPk1H9ACQ8 9rc8K4y8lKJBTAshNgagpBVpS+doBuB8clyvKi0s2ms1kG83Ky9VKWut9aojWjhn0Y/y fE10bZH9kWyd2tU8VqlsIfFRIDd/1T0Ka2oS3/9iL98qivov7nMm3YEZm5JKtyVNai12 6N5eeNtcXJf1/e9XKfqflaXc1vHN0CdVtNG98P3rB18DZTbkkETbElw5pqQkh/JV+hWv X4hQ== MIME-Version: 1.0 X-Received: by 10.28.18.9 with SMTP id 9mr26718335wms.96.1449584843364; Tue, 08 Dec 2015 06:27:23 -0800 (PST) Received: by 10.27.176.167 with HTTP; Tue, 8 Dec 2015 06:27:23 -0800 (PST) In-Reply-To: <5666CDDD.6030209@lsces.co.uk> References: <56662437.5040508@lsces.co.uk> <27359E8F-2C04-416B-861D-C2C4C85E4C77@lerdorf.com> <5666CDDD.6030209@lsces.co.uk> Date: Tue, 8 Dec 2015 15:27:23 +0100 Message-ID: To: Lester Caine Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a1145bd10a92211052663c5f7 Subject: Re: [PHP-DEV] Practical comparisons on PHP7 From: tyra3l@gmail.com (Ferenc Kovacs) --001a1145bd10a92211052663c5f7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Dec 8, 2015 at 1:32 PM, 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 :( > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=3Dcontact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.uk > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I think you should simply get better instrumentation/benchmarking methods before rushing your conclusions. Usually it is also helps if others can reproduce your results either to verify your claims or spot the mistakes causing the bogus results. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a1145bd10a92211052663c5f7--