Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88929 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71375 invoked from network); 24 Oct 2015 04:36:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2015 04:36:12 -0000 Authentication-Results: pb1.pair.com header.from=cornelius.howl@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cornelius.howl@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.179 as permitted sender) X-PHP-List-Original-Sender: cornelius.howl@gmail.com X-Host-Fingerprint: 209.85.214.179 mail-ob0-f179.google.com Received: from [209.85.214.179] ([209.85.214.179:34036] helo=mail-ob0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/32-55100-BBA0B265 for ; Sat, 24 Oct 2015 00:36:11 -0400 Received: by obbda8 with SMTP id da8so107507786obb.1 for ; Fri, 23 Oct 2015 21:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8GvQNqKN0328aCSvwI7rd1B1KL6q4DC+5UgaBgumjEY=; b=O4ISrRc64qYflh21osoUFfDxqAIS5Q9gcZ8mx2PCI1LSBPKpiIOF1v2re8v3ks3z0c t9VKbMi9GQ7LoiCuiY8JTgyoTR24VJbCVJTHSGYsANCt9NX3dLLZjzEm0+gOaQNsMoHW d9fFpbiufuMeEfA8ej2QrIDcn73VM+ZzdKFzu4/VICtnXA2VIyOK43Vub0fac0kpGgmy FiNJyO2YGpK/JACNchqtgZrsltFjDPHVzRKluCeKq58AiqyUawMMNHgk4p5kiyb3Nivg 6dfok2EsyL+sI3hNvCrIm37va/uVh/tIJLXAu4agKWgg76Rr8Bf1XCYvcK6Uy+NxMrso 8tAg== MIME-Version: 1.0 X-Received: by 10.60.144.231 with SMTP id sp7mr18342869oeb.7.1445661368143; Fri, 23 Oct 2015 21:36:08 -0700 (PDT) Received: by 10.76.157.138 with HTTP; Fri, 23 Oct 2015 21:36:08 -0700 (PDT) In-Reply-To: References: Date: Sat, 24 Oct 2015 12:36:08 +0800 Message-ID: To: Xinchen Hui Cc: Dmitry Stogov , Derick , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=047d7b47225e5056580522d2442b Subject: Re: [PHP-DEV] few questions about op_array From: cornelius.howl@gmail.com (Lin Yo-An) --047d7b47225e5056580522d2442b Content-Type: text/plain; charset=UTF-8 Hi Hui, On Fri, Oct 23, 2015 at 8:27 PM, Xinchen Hui wrote: > Hey Lin: > > On Fri, Oct 23, 2015 at 3:31 PM, Lin Yo-An > wrote: > >> Hi Dmitry, >> >> >> I changed and tested it, and it looks like it gains some improvements. >> how do you compare the benchmark result? is there a tool doing it? >> >> I currently do: >> >> ./sapi/cli/php Zend/bench.php >> >> The result: >> >> https://gist.github.com/4bbc33b7b5dcedc6bd66 >> > Acutally, simply bench.php testing is very un-stable. in generally, we > prefer using real-life app to test, like wordpress. > > Basically, we use callgrind to collect the IRs , like valgrind > --tool=callgrind --instr-atstart=yes php-cgi -T 100 wordpress/index.php ( I > may type args wrong). > > But in this case(cache friendly), you may try to use perf to collect cache > miss changing. > Thanks! it's helpful! --047d7b47225e5056580522d2442b--