Re: few questions about op_array
| From: | Lin Yo-An | Date: | Sat, 24 Oct 2015 04:36:08 +0000 |
| Subject: | Re: few questions about op_array | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88929@lists.php.net to get a copy of this message | ||
Hi Hui,
On Fri, Oct 23, 2015 at 8:27 PM, Xinchen Hui <laruence@php.net> wrote:
> Hey Lin:
>
> On Fri, Oct 23, 2015 at 3:31 PM, Lin Yo-An <cornelius.howl@gmail.com>
> 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!