Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95533 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55774 invoked from network); 1 Sep 2016 12:08:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2016 12:08:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.178 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.178 mail-qk0-f178.google.com Received: from [209.85.220.178] ([209.85.220.178:36691] helo=mail-qk0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/B0-47600-62A18C75 for ; Thu, 01 Sep 2016 08:08:06 -0400 Received: by mail-qk0-f178.google.com with SMTP id l2so82013539qkf.3 for ; Thu, 01 Sep 2016 05:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=nOdcOKKDP6IYsst2DE6VtBk+HM7dg/4q0SuRnPKNPVQ=; b=msZ4+0PEuv/g0dBpQtNAXBn+bldMf0x8X7RMgLujAvPA7DLPTa0fTba6IBbn1+cbqR ruDjPaoMafzgwT15AoXz4fwwua8ZMDhyGs7HChKQk5RqU8460PibO+3yaUvskHuHIIQE Zn7EIR4jYd/dhtJSaMqtkIWQWz1F33QCU6rTOyliYTcfiPJXXNbHZoUAWQQs7PAu7SbC FLU3xerNw6R/+QMNWWCBPYR2czz1XpyDWO8q9VTraIIpMpuC1TlJMuegMPIA0NPfUqcO uuYDlvgtsWG9tUtbGtRMhp9F90iw6jzwmJ8yqNKhCrdE0UeHns+itxicRJosLfOCkOzA G+ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=nOdcOKKDP6IYsst2DE6VtBk+HM7dg/4q0SuRnPKNPVQ=; b=Wnskr4hK2Lpd2LzPuitHKxYakFoVAQtoaI9c+VfQZT9x6c+mmJBM9L9go0Aconm49s rzjLuSNkl5u75ycmavnL5WsihQmewc3lcL3q1+C/5ZwfHerMGaiXvaXMzy0uYjg3Pp6x atz+dXlyY10OUYfzjTeMf2/9NpAXxRcaEgqhFHSfFgH+k//2TdoeHEk9ou4W4zDNYUkv ZBMBFHo5110J456oQbA7RKSDQbCFUvaz2CHn5xLYoqxfEtWo3wjcNUaTPCloHcN3Ht6O wvJGQYUpuoeDVpS7V2thHysoRUg/ddztyiprFfyC3DujEZq9jjR0dTAqedcw2C1OYXmt uqjw== X-Gm-Message-State: AE9vXwPxXuoPCJqLizMlQ07WSFBzMbNQ3In/Zw9AyAyrgRJQr5opQwIzpE3LDnVH62nsB6tEHu9FyTo5VU/fVQ== X-Received: by 10.55.200.201 with SMTP id t70mr1486879qkl.238.1472731683260; Thu, 01 Sep 2016 05:08:03 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.12.128.230 with HTTP; Thu, 1 Sep 2016 05:07:42 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Sep 2016 20:07:42 +0800 X-Google-Sender-Auth: 6YlZaXJmnEOBK0-28Jt4bv_SmYw Message-ID: To: Dmitry Stogov Cc: PHP internals list , Zeev Suraski Content-Type: multipart/alternative; boundary=001a1146cfacd4935e053b71106f Subject: Re: [PHP-DEV] JIT for PHP project From: xinchen.h@zend.com (Xinchen Hui) --001a1146cfacd4935e053b71106f Content-Type: text/plain; charset=UTF-8 Hey: On Thu, Sep 1, 2016 at 7:57 PM, Dmitry Stogov wrote: > Hi @internals, > > I'm glad to say that we have started a new JIT for PHP project and hope to > deliver some useful results for the next PHP version (probably 8.0). > We are very early in the process and for now there isn't any real > performance improvement yet. So far we spent just 2 weeks mainly working > on JIT infrastructure for x86/x86_64 Linux (machine code generation, > disassembling, debugging, profiling, etc), and we especially made the JIT > code-generator as minimal and simple as possible. The current state, is > going to be used as a starting point for research of different JIT > approaches and their usability for PHP. > > The code is available at: https://github.com/zendtech/ > php-src/tree/jit-dynasm/ext/opcache/jit > > The sources may be built and tested as regular PHP (no any special > external dependencies required). > JIT itself is implemented as a part of Opcache. > You may try it in action: > > sapi/cli/php -d opcache.jit_buffer_size=32M Zend/bench.php > sapi/cli/php -d opcache.jit_buffer_size=32M -d opcache.jit_debug=1 > Zend/bench.php 2>&1 | less > > As I mentioned we didn't try to achieve any real performance improvement > yet, although we do currently see 20% speedup on bench.php, but a bit of a > slowdown on real-life apps. > Actually, if you are lucky like me, you may see like 5% improvement on wordpress. :) thanks > > Wish us luck :) > > Thanks. Dmitry. > > -- Xinchen Hui @Laruence http://www.laruence.com/ --001a1146cfacd4935e053b71106f--