Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Performance Measurement

How can I benchmark certain peices of code in PHP? I can use timers to calculate the differences, I'm just not sure if it is the best solution out there.

like image 558
David Weng Avatar asked Aug 14 '10 07:08

David Weng


1 Answers

Have a look at XDebug Profiler to benchmark the performance and more.

Xdebug's Profiler is a powerful tool that gives you the ability to analyze your PHP code and determine bottlenecks or generally see which parts of your code are slow and could use a speed boost.

like image 184
Sarfraz Avatar answered Nov 14 '22 04:11

Sarfraz