[Phpwm] timing a function

David Goodwin david at codepoets.co.uk
Fri Oct 21 12:13:14 UTC 2011


On 21 Oct 2011, at 13:01, alan dunn wrote:

> I want to measure the execution time for a function - it is to determine a price given quantity discounts, promotion prices etc. 
> 
> Can anyone give me tips on how to do that?
> 
> More generally I have the options of running a php function - or creating a database function in plpgsql to do the same thing. Someone might have a view about their relative speeds? 



Suggest you look at xdebug or xhprof and profiling.

David.




More information about the Phpwm mailing list