Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89769 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38473 invoked from network); 9 Dec 2015 03:48:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2015 03:48:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=jgmdev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jgmdev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.45 as permitted sender) X-PHP-List-Original-Sender: jgmdev@gmail.com X-Host-Fingerprint: 209.85.192.45 mail-qg0-f45.google.com Received: from [209.85.192.45] ([209.85.192.45:36664] helo=mail-qg0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/32-20458-284A7665 for ; Tue, 08 Dec 2015 22:48:18 -0500 Received: by qgcc31 with SMTP id c31so55516781qgc.3 for ; Tue, 08 Dec 2015 19:48:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=1Ew2JL1zNZA41Vly6ULyhkKZjqbWTgpWLy7tV5XIS7I=; b=UYCzp0vbVNcnzoMDKn98dijTCGiY4FjaPnrNI7Qx6ReVbio8ldy30SObfy6nCakfsm lYOS7+UCReLqdtnpBXmKkPSQPbgbwilcSq4Oti5jzJV9hJQEGSz3l/ZTajnaI4KOFhU/ 6o3DWcJca0T2NW8lgfcC+u39FeLP+SqRrXtZnw8qxYyYpxj0gJkTQqg3Ok1gIR8aEoej MKjZG7SdZ4v4XPQ25q53CCgFCm6ArKRL1dnYVEMZwMj0BDmI2DV8VIacmbaBp4ivi9P5 O7otXBHE1ydgDUi+rVAbmabu8ep1c3fr9BcMn2lH2QV0xbmnnDvSNB60bMCZ/bUSAwkI ONWg== X-Received: by 10.129.70.65 with SMTP id t62mr4294103ywa.240.1449632895776; Tue, 08 Dec 2015 19:48:15 -0800 (PST) Received: from [192.168.1.149] ([24.138.241.194]) by smtp.gmail.com with ESMTPSA id a143sm4461713ywe.54.2015.12.08.19.48.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Dec 2015 19:48:14 -0800 (PST) To: Lester Caine , internals@lists.php.net References: <56662437.5040508@lsces.co.uk> <27359E8F-2C04-416B-861D-C2C4C85E4C77@lerdorf.com> <5666CDDD.6030209@lsces.co.uk> Message-ID: <5667A477.1060308@gmail.com> Date: Tue, 8 Dec 2015 23:48:07 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5666CDDD.6030209@lsces.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Practical comparisons on PHP7 From: jgmdev@gmail.com (Jefferson Gonzalez) 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.