Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102418 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89269 invoked from network); 25 Jun 2018 14:14:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2018 14:14:19 -0000 Authentication-Results: pb1.pair.com header.from=vsuraski@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=vsuraski@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.178 as permitted sender) X-PHP-List-Original-Sender: vsuraski@gmail.com X-Host-Fingerprint: 209.85.216.178 mail-qt0-f178.google.com Received: from [209.85.216.178] ([209.85.216.178:34766] helo=mail-qt0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/45-50433-8B8F03B5 for ; Mon, 25 Jun 2018 10:14:18 -0400 Received: by mail-qt0-f178.google.com with SMTP id b20-v6so2810240qtp.1 for ; Mon, 25 Jun 2018 07:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ipq+VpqiJjVghtF4Gw9YOTEZfFJ2AakQnylrikFe3lI=; b=PL6PfyUg8jFpocSIZ0AwKTJgXiyjUkYG5uAIFagPisevhlmrxpITKEeiEOBHcl1y2x iqGOTtDmETXk7ZK2KP9PfilKJJ/R0iP/Ki4vf26H832Q0dCRCcz5F42+S/Z19+tcXd61 CjqzH7Ecj4uPMsUAi3d3UrRW/Qy3NY+nTuZRXIt43raYfk2Vc/Y4w2hfGUslDmFjfcax 09HeHSAUXiW/YAlF+8tQMb30UaKdhP4Uu3JWJg44D+LQyaMZ6MVqAE3shVq0HElOd4hG F/U1iC3hwkGgj7KjCaX9WFB0AyydGyfF17WLlCaHM02Q5S7i2u1JDs/ztxnqUC8L7STM Ha+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ipq+VpqiJjVghtF4Gw9YOTEZfFJ2AakQnylrikFe3lI=; b=aCc1Uwj122Uc8Ok6rXXREV99azdsZqI6FgGf3P14+gCFJ2Gz5kZbWTZEKkvqNuPX7L sl2qav9An12pOWxwtYEua9A3sbjpOPtIFOnUbmmDKE+IVjBpWE4AXj2CKWQcXoj0d+yD w6xxbqxSJgzw4BLMgGLM6s1PM066JfKWw96AiHNR0MzHlhixhoOVieFVNQxFdxwqG7fx VOKIfb9qPqVAzRbfQ+00hUaJm5rIM8/5dDIMc7b8tWya54pmE4yjQyHO+0LyZIEVdv+i xjNxjkM+oaYL/7Htk2ctmK60w1L43VL/hF22pLsMJzUOTAoykgyZ6im06+Zw1cWRnBSx wk/Q== X-Gm-Message-State: APt69E1zoo7rKRvcSfd86AGwlkZDy/smV5FtxWIKSCRpkuIqN+VpTMhC bHclbysvN4JyvMFNkmcyk5Kcy7A0riWq8hOuEEKwcpv4 X-Google-Smtp-Source: AAOMgpdXiWRwPwuFsE3pej96Oe1MVUv/JZE9bTnpbX9fBWz1VDlomMSy8rS41s3xSM56jWW/9z+W5lkboi/Oi3gWZBY= X-Received: by 2002:aed:25f3:: with SMTP id y48-v6mr7705105qtc.199.1529936054233; Mon, 25 Jun 2018 07:14:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 25 Jun 2018 17:14:02 +0300 Message-ID: To: Zeev Suraski Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000000ac6c4056f77ffd7" Subject: Re: [PHP-DEV] PHP 2^3 From: vsuraski@gmail.com (Zeev Suraski) --0000000000000ac6c4056f77ffd7 Content-Type: text/plain; charset="UTF-8" On Mon, Jun 25, 2018 at 3:31 PM Zeev Suraski wrote: > 1. JIT. As most of you probably know, we've invested heavily in re-doing > JIT on top of the PHP 7 infrastructure. There are good news and bad news. > The good news is that - like the JIT POC we did back in 2014 - the results > for CPU intensive workloads are remarkable. The bad news is that it > doesn't significantly move the needle for typical Web workloads. > That said, unlike 2014 - where we had another avenue to go after, this > time we believe that JIT doesn't improve the performance of typical Web > workloads simply because the bottleneck there is no longer PHP code > execution. > However, I still think we should still include JIT in the next major > version of PHP for at least 2 reasons: > - It will open the door for new types of workloads for PHP (non Web) > - It may open the door for new built-in functionality being written in > PHP - for more secure code (e.g. a PHP unserialize() implementation, > instead of one in C) > In addition, it's always possible that we're missing something in our > benchmarks and that there are real world Web workloads that would actually > benefit from the speedup. > One thing worth noting is that in all likelihood, we'd want to make > OPcache (or at least large parts of it) a part of the core engine (and no > longer a separate extension) as a part of the JIT effort. > - (bonus) Combined with other things we're experimenting with, the > compound effect may still result in better performance for Web apps. > To get a feel for the performance gains we're talking about here, I > recorded a benchmark comparing PHP 7.0 and the JIT PoC, available here: > https://www.youtube.com/watch?v=dWH65pmnsr > > Argh - the URL was trimmed - that's the correct one: https://www.youtube.com/watch?v=dWH65pmnsrI Zeev --0000000000000ac6c4056f77ffd7--