Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84257 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70460 invoked from network); 3 Mar 2015 17:48:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2015 17:48:51 -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.42 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 74.125.82.42 mail-wg0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:39010] helo=mail-wg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/03-03783-004F5F45 for ; Tue, 03 Mar 2015 12:48:50 -0500 Received: by wggx12 with SMTP id x12so41596201wgg.6 for ; Tue, 03 Mar 2015 09:48:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=q8hMzqye2vTW09wIWBHixzq5F53DqPdakvzhE//Wm7w=; b=YA3zWr5jDnxlv6lreLRmjQ98zgkWAgpsJnWkWHt285Fu/GOYgEVOqE0agw32/I/rpB KmyTvK3lJO/kovFuKRgmPJjATXCK5+0DQx3KYmkWfEdZGpFK+Xd9ky01Mtigo/JUydb6 MxvehEm8ygAnieJGk+du7P5ilTUs7TZ+FKB4t4eExSaMZYzB7NHnY7hz58K6TsyQVz2I epdOH34tkAxsJIPAQFBzrBl122/jHNRJB+kSKM3jXOIUcwUeXB6OB0Y2d/QdsP6nfQ97 8WkqVgfmOc6WJiUWDl1u0oPsavh8o5mXofppZccunOEG65vuCp5+v42Wq27grnBm1Jfj 70Zg== X-Gm-Message-State: ALoCoQkCzkATFvS1xeLJbx+fkpsHrEZ8g0HwE8DATJE7gd/lHTEKgve4AVWxKi0cPPXky3HRULOID8UHcys2xzlC/sVicHdkFhq/+wDppBQMPi216pC1H313Gc9bsYX2z+1Ie2wG2+X+IZhQI/t/KSMP4RpVLQ5Txg== X-Received: by 10.194.61.65 with SMTP id n1mr72547534wjr.53.1425404925009; Tue, 03 Mar 2015 09:48:45 -0800 (PST) Received: from [192.168.0.119] (IGLD-84-228-19-69.inter.net.il. [84.228.19.69]) by mx.google.com with ESMTPSA id fo9sm21513084wib.16.2015.03.03.09.48.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Mar 2015 09:48:43 -0800 (PST) Content-Type: multipart/alternative; boundary=Apple-Mail-62968430-317F-4CD2-BB1B-DDFD83C93EEA Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (12B466) In-Reply-To: Date: Tue, 3 Mar 2015 19:48:42 +0200 Cc: PHP Internals Content-Transfer-Encoding: 7bit Message-ID: References: <54F08FF3.3040404@seld.be> <63262a9c0edd51bbf38df2a00c87340e@mail.gmail.com> <9977a20c9d756489f41e666d23c89e3f@mail.gmail.com> <9656140ae786d42e7b0da11dbd416a61@mail.gmail.com> <73db72094f98cba6adddfda31e43ab4a@mail.gmail.com> To: Anthony Ferrara Subject: Re: [PHP-DEV] Re: Zend JIT Open Sourced From: zeev@zend.com (Zeev Suraski) --Apple-Mail-62968430-317F-4CD2-BB1B-DDFD83C93EEA Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On 3 =D7=91=D7=9E=D7=A8=D7=A5 2015, at 19:08, Anthony Ferrara wrote: >=20 > Zeev, >=20 > On Tue, Mar 3, 2015 at 11:32 AM, Zeev Suraski wrote: >>> It wins on uneven ground. >>=20 >> Without the output buffering code it's a LOT more uneven, as the PHP vers= ion >> is flushing every byte - approx. 6,000 such flushes. >=20 > Then the benchmark should suffer because of that. You're testing the > full stack of all of the other languages, yet disabling a significant > part of it for PHP and saying "it's still fair because that part of > the stack is expensive". Yes, the part that has nothing at all to do with the benchmark at hand, and t= hat changes on a per-SAPI basis and creates nothing but unrelated noise for t= his benchmark. As I repeatedly said, and as should be obvious to anybody lo= oking at cpu-bound benchmarks like Mandelbrot, the idea is to focus on the a= lgorithm and factor out everything else, which is exactly what the code for b= oth PHP and C (as well as the other langs) does. If you haven't yet - run t= he new line-free C version that has full buffering. Spoiler: it has identic= al performance. Zeev= --Apple-Mail-62968430-317F-4CD2-BB1B-DDFD83C93EEA--