Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84241 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39539 invoked from network); 3 Mar 2015 15:26:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2015 15:26:55 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 74.125.82.41 mail-wg0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:33916] helo=mail-wg0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/0D-03783-EB2D5F45 for ; Tue, 03 Mar 2015 10:26:55 -0500 Received: by wghn12 with SMTP id n12so40812745wgh.1 for ; Tue, 03 Mar 2015 07:26:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type; bh=S33mE7tkn5GYW2v6UPt2zwO+rP8+reJziyc5MveRimU=; b=Y3ukm8efG239JkZ8/rDLgaYE3yo71A6ltNLgtC9bCJ9qWF5pMLLszYpgW+r+R+dR0W eMdGSsPLq5hejPYTEsU5z1Mg+Ck2KRAtLxjoLgpUoOI1fqt0iDSN6wGNzYREAq9Iwqmf bBR5kF0/3hvqxKxNbXzlsMlPOLjdHpcgHfnT6MGTDxRRGFdPN/bssfgEEbY8+RUyye+K dJaPVV94VFe0wkc+OUBzzeJf4kAYwMtd0P7lQnqgWs75W7EqlfhzZCYUZ6DCkWEnTHGB 9OlS5rzp2WJJvFl7zIkbN1eO14+NRtM3jy773SPvnpItJX87n31b2V9w2z0v5moxwwwD OOxQ== X-Gm-Message-State: ALoCoQkp3jEJSJQTjQadau1SBUzD23iIFgB6dEeJwbFjA40LAa823LMhi3gKr/FYrAhO97q+Dqdx+EF8NElFBhRcR3lA/vDoWp1v4qi4Ghn7mfny28noUw15MRKsAzJv1W+ecF1DX92aNLXJaoqmdnC6DJJEpDy57A== X-Received: by 10.180.99.34 with SMTP id en2mr3803182wib.81.1425396412073; Tue, 03 Mar 2015 07:26:52 -0800 (PST) References: <54F08FF3.3040404@seld.be> <63262a9c0edd51bbf38df2a00c87340e@mail.gmail.com> <9977a20c9d756489f41e666d23c89e3f@mail.gmail.com> <9656140ae786d42e7b0da11dbd416a61@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKGyN3KgWG36vID82kvfjRJrrXIyAJK0qX5ATr4h/cC0qV80wNZyGBIAZYUbesBqsedZgIrANg8AZZnn6cCJ35+AQFt/8XUAZZse/8CQ+t/FgJqnzwNAtY2ENQBSiOTVZqogDCw Date: Tue, 3 Mar 2015 17:26:50 +0200 Message-ID: <2adbb2d21fe37bdd9d841da5c62966c5@mail.gmail.com> To: Julien Pauli Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: RE: [PHP-DEV] Re: Zend JIT Open Sourced From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: julienpauli@gmail.com [mailto:julienpauli@gmail.com] On Behalf Of > Julien Pauli > Sent: Tuesday, March 03, 2015 5:11 PM > To: Zeev Suraski > Cc: Anthony Ferrara; PHP Internals > Subject: Re: [PHP-DEV] Re: Zend JIT Open Sourced > > On Tue, Mar 3, 2015 at 2:05 PM, Zeev Suraski wrote: > > > > So I do apologize to the person. I don't to the code. > > I wanted to verify whether my gut was correct (minimal amount of > output, and > stdout is in fact buffered - output shouldn't move the needle) and > asked > Dmitry to rerun the C test on the same system, but this time with the > output > code completely commented out: > real 0m0.011s (+- 0.01) > user 0m0.011s (+- 0.01) > sys 0m0.001s > > Apologies to the code might be in order :) > > The source of the JIT engine's edge is, as Dmitry and Andi said, the > CPU-specific optimizations that gcc -O2 doesn't generate, and > therefore it > can actually be faster than a generic native executable in some (I > would > guess not all that common) cases. > > > > That's why one may run GCC -march=native when mastering the hardware. > I guess here, no JIT can outperform that. Of course, but the vast majority of people don't build their own binaries. internals@ audience may not be the best sample to gauge that percentage, though :) Zeev