Hi Hui, On Fri, Oct 23, 2015 at 8:27 PM, Xinchen Hui <larue...@php.net> wrote:
> Hey Lin: > > On Fri, Oct 23, 2015 at 3:31 PM, Lin Yo-An <cornelius.h...@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!