Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84240 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36939 invoked from network); 3 Mar 2015 15:11:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2015 15:11:32 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.180 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.82.180 mail-we0-f180.google.com Received: from [74.125.82.180] ([74.125.82.180:34422] helo=mail-we0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/8C-03783-32FC5F45 for ; Tue, 03 Mar 2015 10:11:31 -0500 Received: by wesq59 with SMTP id q59so40510654wes.1 for ; Tue, 03 Mar 2015 07:11:28 -0800 (PST) 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:content-type; bh=6ygw5T7QJoOHjb6SRO8J1ztkMRlUD1IQHq09AmIU7es=; b=TBYclk9OqSbQDOx8R0tUWjQMCYGICICI7sRw2YnnhWLVlJvLpqAe+47G9/4k1+nXGy PNB3XyepS4zX7m8M1bTvNFvErcb7M/nH0u9rjXVEaesnEU9AiWL41Lz4LwnOwrw5jsMi DtQwh1zUao6bVCLb7LSKzn/SwrN/urSzGi/n9zZkevL973iwQDQVH3P5WzJg0uSFu65b xR4Ii9JqM30nT9ntda8tuO6obHE1MT6dkNqbUX1+mRGK7W3bqt4jBaLIrPwd9pYhYkVq lJBxbhhpJSciOknuqYr2Q/ZCR2RzhnVFC2eOA2Dokg+TyHLTvoipARfLwYJBfEvwNhq2 YDXA== X-Received: by 10.194.221.100 with SMTP id qd4mr36197697wjc.113.1425395488508; Tue, 03 Mar 2015 07:11:28 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.194.198.210 with HTTP; Tue, 3 Mar 2015 07:10:48 -0800 (PST) In-Reply-To: <9656140ae786d42e7b0da11dbd416a61@mail.gmail.com> References: <54F08FF3.3040404@seld.be> <63262a9c0edd51bbf38df2a00c87340e@mail.gmail.com> <9977a20c9d756489f41e666d23c89e3f@mail.gmail.com> <9656140ae786d42e7b0da11dbd416a61@mail.gmail.com> Date: Tue, 3 Mar 2015 16:10:48 +0100 X-Google-Sender-Auth: 4hjGe0i2CbG-BDaArfO3XE1hRXk Message-ID: To: Zeev Suraski Cc: Anthony Ferrara , PHP Internals Content-Type: multipart/alternative; boundary=001a11c3aa74c1d086051063bfe2 Subject: Re: [PHP-DEV] Re: Zend JIT Open Sourced From: jpauli@php.net (Julien Pauli) --001a11c3aa74c1d086051063bfe2 Content-Type: text/plain; charset=UTF-8 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. Julien.P --001a11c3aa74c1d086051063bfe2--