Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a PHP per-function (or per-task) performance / benchmark reference exist?

I'm running my own (albeit, basic) benchmarks in a linux-based sandbox. However, I'd love to find a per-function or per-task performance / benchmark reference or utility for comparison.

Does this exist?

Of course I've done my own fair diligence / searching and have so far come up empty handed..

(I'm primarily interested in information relevant to PHP 5.3)

Thanks very much! :)

like image 319
Dang Avatar asked Dec 21 '25 08:12

Dang


1 Answers

You can use a profiler to evaluate which function calls are more costly.

XDebug can also provide log files that you can later load into KCacheGrind to get a nice tree output of what time was spent where in your code.

like image 162
Andre Avatar answered Dec 22 '25 21:12

Andre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!