Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84041 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64764 invoked from network); 27 Feb 2015 20:22:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 20:22:55 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:50755] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/74-32582-E12D0F45 for ; Fri, 27 Feb 2015 15:22:54 -0500 Received: by mail-vc0-f170.google.com with SMTP id hq12so7266783vcb.1 for ; Fri, 27 Feb 2015 12:22:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ysfOi42kjHLxc6T4vQQiYGVS43HxbtbJDpizKBhD5Sk=; b=iYp3D4m094hg75S2B7tgQhhnEInbsoKyZ69ME7uVY7Ft5XibnRfrQ1Yl6sMuA+q5zu l14dIwKfTU1w+IYSlmHfi3SBo3Zr4GQAkAykpCiz6Iri309oCWK+LVpMcd7Jv7O2ke/R ovDYiOqoyZck1tZP/KNTa9h8NsUJYHui0bDJLlr3xJ6su154qtbFrRe3ctOoxZL7yiYh C6MvCLB2pR4iEZtLKndvLF2mJkC9SsM6KDlGddFGkjhgiDWr97aaHcm7cwPAcpic2Q/s 6LzSxSPlbFwrBF6wPWSB+UY8lM05VlRUwXrONjoWXZB4Y2IVVyObX4+4RcVVMcxGvkJs lJzw== X-Gm-Message-State: ALoCoQmh4REXXJPzD7Q3DiY2k2oxSy4gJxGoWMott8YYn8skhlLCyVhNDUm91h1c6+rlqpWO8CBQIjJ2kK3G29xPaSr2i8mrpgVx8rBINBcwN/hl3+atDvkIdPwjgYPupqyuzFVp+3jHey0u7PPa3ZjLyXYI+ZOG0A== MIME-Version: 1.0 X-Received: by 10.52.162.72 with SMTP id xy8mr14651161vdb.12.1425068571723; Fri, 27 Feb 2015 12:22:51 -0800 (PST) Received: by 10.52.113.231 with HTTP; Fri, 27 Feb 2015 12:22:51 -0800 (PST) In-Reply-To: References: <54F08FF3.3040404@seld.be> <63262a9c0edd51bbf38df2a00c87340e@mail.gmail.com> Date: Sat, 28 Feb 2015 00:22:51 +0400 Message-ID: To: Anthony Ferrara Cc: Zeev Suraski , Jordi Boggiano , PHP Internals Content-Type: multipart/alternative; boundary=089e01628326ff9ebd051017a168 Subject: Re: [PHP-DEV] Re: Zend JIT Open Sourced From: dmitry@zend.com (Dmitry Stogov) --089e01628326ff9ebd051017a168 Content-Type: text/plain; charset=UTF-8 On Fri, Feb 27, 2015 at 10:36 PM, Anthony Ferrara wrote: > Dmitry, > > >> That's not to say there's anything wrong with this approach, nor that > >> there isn't a ton we can learn from it. I think it's a fantastic > >> research effort and plan on digging through it myself. Thank you for > >> open sourcing it. > > > > > > Thanks for good words :) > > > > This work may be adopted for some specific cases. > > 25-30 times speedup on Mandelbrot allows usage for numeric calculation > > instead of C. > > > > https://gist.github.com/dstogov/12323ad13d3240aee8f1 > > > > anyone may repeat the language battle :) > > These tests seem really odd. A 15% speed advantage over GCC -O2? Sure, > it's possible. But I don't think it's likely. It really smells to me > like bias in the testing methodology. (and the lack of an -O3 result > is suspicious as well). > > And looking at the code, I can see why. The PHP version is writing to > an internal buffer, while every other version has to write to STDOUT > on every single iteration. > > So you are intentionally not benchmarking the output in the PHP > version (you even explicitly call ob_start()) but are benchmarking it > in every other version. So in fact, the PHP code does something > different than the rest of the code. > > Sneaky sneaky. Also completely fake. Please, be polite. We opened sources, and the sources of benchmarks. Anyone can repeat this. Smart people may analyze results themselves before claiming others. I think you are smart person, and I respect the things you are doing. Thanks. Dmitry. A proper methodology would have > explicitly disabled any buffer so that the tests all tested the same > thing. Or even better, build up an internal buffer in all of the > implementations. That way you can compare the computation and not rely > on STDOUT (terminal) response. > > Anthony > --089e01628326ff9ebd051017a168--