PHP code's performance test

前端 未结 7 1842
自闭症患者
自闭症患者 2020-12-08 22:56

What is the best way for me to test my PHP code\'s performance?

7条回答
  •  臣服心动
    2020-12-08 23:23

    xDebug has a profiler built in, once configured it will dump some files that you can read with a program like kCacheGrind or WinCacheGrind

    This will then allow you to see the all the function calls, average and cumulative call times and the total script execution time. Very helpful for finding bottlenecks in your code.

提交回复
热议问题