Re: [benchmark] Hardware performance counters (PAPI?)

From: Date: Thu, 18 Jun 2009 14:04:39 +0000
Subject: Re: [benchmark] Hardware performance counters (PAPI?)
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-65110@lists.php.net to get a copy of this message
On Thu, Jun 18, 2009 at 2:51 PM, Alexander Hjalmarsson<hjalle@sgh.se> wrote: > How should the integration of the hardware performance counters be? > I believe I need som help in this matter since I have no earlier experiences > from this and their documentation is pretty good, but not enough for me. How > can their code be integrated into a PHP script? For C it looks pretty > straight forward, but I need some directions how it can be used in PHP. As I recall, you don't need to use the papi API at all. Instead, the entire program should be called with papiex (http://icl.cs.utk.edu/~mucci/papiex/). So: papiex -flag1 -flag2 ... php benchcli.php ie the same as valgrind. You certainly shouldn't be trying to add calls to papi_init () etc in C code (unless there is a specific thing that needs to be benchmarked, but I don't think you're planning on doing anything like that?). Thanks, Paul -- Paul Biggar paul.biggar@gmail.com

« previous php.qa (#65110) next »